#!/sbin/openrc-run
# svscan - openrc script
# WARNING: This file was auto-generated. Do not edit!
#
#
# $Id: openrc.in,v 1.1 2021-07-25 14:19:18+05:30 Cprogrammer Exp mbhangui $
#
name="$SVCNAME"
command="/usr/libexec/indimail/svscanboot"
command_args="/service"
pidfile="/var/run/$SVCNAME.pid"
command_background=true
extra_commands="status restart rotate kill flush cdb enable disable help"
extra_started_commands="reload queue pause cont"
proname="svscan"
description="Start svscan supervisor and associated services"

depend()
{
	need localmount
}

reload() {
	ebegin "Reloading ${RC_SVCNAME}"
	start-stop-daemon --signal HUP --pidfile "${pidfile}"
	eend $?
}

kill() {
	/usr/bin/qmailctl kill
}

flush() {
	/usr/bin/qmailctl flush
}

rotate() {
	/usr/bin/qmailctl rotate
}

queue() {
	/usr/bin/qmailctl queue
}

cont() {
	/usr/bin/qmailctl cont
}

cdb() {
	/usr/bin/qmailctl cdb
}

enable() {
	/sbin/rc-update add svscan default
}

disable() {
	/sbin/rc-update del svscan
}

help() {
	/usr/bin/qmailctl help
}

#
# $Log: openrc.in,v $
# Revision 1.1  2021-07-25 14:19:18+05:30  Cprogrammer
# Initial revision
#
#
