diff options
Diffstat (limited to 'community/backuppc/backuppc.initd')
-rw-r--r-- | community/backuppc/backuppc.initd | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/community/backuppc/backuppc.initd b/community/backuppc/backuppc.initd new file mode 100644 index 0000000000..751f04bf4e --- /dev/null +++ b/community/backuppc/backuppc.initd @@ -0,0 +1,26 @@ +#!/sbin/openrc-run + +extra_started_commands="reload" + +: ${user:="backuppc"} +: ${logdir:="/var/log/BackupPC"} +: ${command_args:="-d"} + +command="/usr/share/BackupPC/bin/BackupPC" +start_stop_daemon_args="--interpreted --user $user" +pidfile="/run/BackupPC/BackupPC.pid" +retry="30" + +depend() { + after firewall modules +} + +start_pre() { + checkpath -d -o $user -m 755 "${pidfile%/*}" +} + +reload() { + ebegin "Reloading $name" + start-stop-daemon --signal 1 --pidfile "$pidfile" -x /usr/bin/perl + eend $? +} |