mirror of
git://slackware.nl/current.git
synced 2024-12-30 10:24:23 +01:00
47 lines
554 B
Text
47 lines
554 B
Text
|
#!/bin/sh
|
||
|
|
||
|
dovecot_start()
|
||
|
{
|
||
|
echo "Starting dovecot: /usr/sbin/dovecot"
|
||
|
/usr/sbin/dovecot
|
||
|
}
|
||
|
|
||
|
dovecot_stop()
|
||
|
{
|
||
|
echo "Stopping dovecot..."
|
||
|
/usr/bin/doveadm stop
|
||
|
}
|
||
|
|
||
|
dovecot_status()
|
||
|
{
|
||
|
/usr/bin/doveadm service status
|
||
|
}
|
||
|
|
||
|
dovecot_reload()
|
||
|
{
|
||
|
echo "Reloading dovecot..."
|
||
|
/usr/bin/doveadm reload
|
||
|
}
|
||
|
|
||
|
case $1 in
|
||
|
'start')
|
||
|
dovecot_start
|
||
|
;;
|
||
|
'stop')
|
||
|
dovecot_stop
|
||
|
;;
|
||
|
'status')
|
||
|
dovecot_status
|
||
|
;;
|
||
|
'restart')
|
||
|
dovecot_stop
|
||
|
sleep 3
|
||
|
dovecot_start
|
||
|
;;
|
||
|
'reload')
|
||
|
dovecot_reload
|
||
|
;;
|
||
|
*)
|
||
|
echo "usage $0 start|stop|restart|reload|status"
|
||
|
esac
|