41 lines
573 B
Bash
Executable file
41 lines
573 B
Bash
Executable file
#!/bin/sh
|
|
|
|
### BEGIN INIT INFO
|
|
# Provides: evobackup
|
|
# Required-Start: $syslog
|
|
# Required-Stop: $syslog
|
|
# Default-Start: 2
|
|
# Default-Stop: 1
|
|
# Short-Description: Backup manager using rsync and OpenSSH chroot.
|
|
### END INIT INFO
|
|
|
|
case "$1" in
|
|
start)
|
|
bkctl start all
|
|
;;
|
|
|
|
stop)
|
|
bkctl stop all
|
|
;;
|
|
|
|
reload|force-reload)
|
|
bkctl reload all
|
|
;;
|
|
|
|
restart)
|
|
bkctl restart all
|
|
;;
|
|
|
|
status)
|
|
bkctl status
|
|
;;
|
|
|
|
*)
|
|
|
|
echo "Usage: $0 {start|stop|restart|reload|status}"
|
|
exit 1
|
|
|
|
esac
|
|
|
|
exit 0
|