diff options
Diffstat (limited to 'main/bacula/bacula-fd.initd')
-rw-r--r-- | main/bacula/bacula-fd.initd | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/main/bacula/bacula-fd.initd b/main/bacula/bacula-fd.initd new file mode 100644 index 0000000000..8f3930b8ee --- /dev/null +++ b/main/bacula/bacula-fd.initd @@ -0,0 +1,21 @@ +#!/sbin/openrc-run + +: ${port:=9102} +: ${conf:=/etc/bacula/bacula-fd.conf} +: ${exec_user:=root} +: ${exec_group:=root} + +name="Bacula File Daemon" +command="/usr/sbin/$RC_SVCNAME" +command_args="-u $exec_user -g $exec_group -c $conf" +pidfile="/var/run/bacula/$RC_SVCNAME.$port.pid" + +depend() { + need net + use dns +} + +start_pre() { + checkpath -d -m 0775 -o ${exec_user}:${exec_group} /var/run/bacula +} + |