[Service]
Type=forking
+User=@dir_user@
+Group=@dir_group@
PIDFile=@piddir@/bacula-dir.@dir_port@.pid
# EnvironmentFile=-/etc/sysconfig/bacula-dir
StandardOutput=syslog
-ExecStart=@sbindir@/bacula-dir -u @dir_user@ -g @dir_group@ -c @sysconfdir@/bacula-dir.conf
+ExecStart=@sbindir@/bacula-dir -c @sysconfdir@/bacula-dir.conf
# This daemon should be able to reload the conf file
#ExecReload=/sbin/killproc -p @piddir@/bacula-dir.pid -HUP @sbindir@/bacula-dir
[Service]
Type=forking
+User=@fd_user@
+Group=@fd_group@
PIDFile=@piddir@/bacula-fd.@fd_port@.pid
StandardOutput=syslog
-ExecStart=@sbindir@/bacula-fd -u @fd_user@ -g @fd_group@ -c @sysconfdir@/bacula-fd.conf
+ExecStart=@sbindir@/bacula-fd -c @sysconfdir@/bacula-fd.conf
[Install]
WantedBy=multi-user.target
[Service]
Type=forking
+User=@sd_user@
+Group=@sd_group@
PIDFile=@piddir@/bacula-sd.@sd_port@.pid
# EnvironmentFile=-/etc/sysconfig/bacula-sd
StandardOutput=syslog
-ExecStart=@sbindir@/bacula-sd -u @sd_user@ -g @sd_group@ -c @sysconfdir@/bacula-sd.conf
+ExecStart=@sbindir@/bacula-sd -c @sysconfdir@/bacula-sd.conf
[Install]
WantedBy=multi-user.target