Better file hierarchy

This commit is contained in:
Victor LABORIE 2017-01-12 10:25:07 +01:00
parent 4c4e845dd8
commit ebedc7b06c
6 changed files with 52 additions and 49 deletions

9
bkctld.conf Normal file
View File

@ -0,0 +1,9 @@
# Defaults for bkctld command (evobackup)
# sourced by /usr/sbin/bkctld and /etc/init.d/bkctld
CONFDIR='/etc/evobackup'
JAILDIR='/backup/jails'
INCDIR='/backup/incs'
TPLDIR='/usr/share/evobackup'
LOG_DIR='/var/log/bkctld'
FIREWALL_RULES='/etc/firewall.rc.jails'

40
bkctld.sysvinit Executable file
View File

@ -0,0 +1,40 @@
#!/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)
bkctld start all
;;
stop)
bkctld stop all
;;
reload|force-reload)
bkctld reload all
;;
restart)
bkctld restart all
;;
status)
bkctld status
;;
*)
echo "Usage: $0 {start|stop|restart|reload|status}"
exit 1
esac
exit 0

View File

@ -1,9 +0,0 @@
# Defaults for bkctld command (evobackup)
# sourced by /usr/sbin/bkctld and /etc/init.d/bkctld
CONFDIR='/etc/evobackup'
JAILDIR='/backup/jails'
INCDIR='/backup/incs'
TPLDIR='/usr/share/evobackup'
LOG_DIR='/var/log/bkctld'
FIREWALL_RULES='/etc/firewall.rc.jails'

1
debian/bkctld.default vendored Symbolic link
View File

@ -0,0 +1 @@
../bkctld.conf

40
debian/bkctld.init vendored
View File

@ -1,40 +0,0 @@
#!/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)
bkctld start all
;;
stop)
bkctld stop all
;;
reload|force-reload)
bkctld reload all
;;
restart)
bkctld restart all
;;
status)
bkctld status
;;
*)
echo "Usage: $0 {start|stop|restart|reload|status}"
exit 1
esac
exit 0

1
debian/bkctld.init vendored Symbolic link
View File

@ -0,0 +1 @@
../bkctld.sysvinit

1
debian/install vendored
View File

@ -1,2 +1,3 @@
bkctld usr/sbin
tpl/* usr/share/bkctld
docs/zzz_evobackup usr/share/doc/bkctld