From 8d5788487147f7b4429df79dd38eaff25ad5b260 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Mon, 13 Sep 2010 12:59:33 +0200 Subject: [PATCH] Make Ubuntu autostart scripts LSB compliant --- bacula/platforms/ubuntu/bacula-dir.in | 11 +++++++++++ bacula/platforms/ubuntu/bacula-fd.in | 11 +++++++++++ bacula/platforms/ubuntu/bacula-sd.in | 11 +++++++++++ 3 files changed, 33 insertions(+) diff --git a/bacula/platforms/ubuntu/bacula-dir.in b/bacula/platforms/ubuntu/bacula-dir.in index c75a57269f..d4bbc404c5 100644 --- a/bacula/platforms/ubuntu/bacula-dir.in +++ b/bacula/platforms/ubuntu/bacula-dir.in @@ -9,6 +9,17 @@ # For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@ # +### BEGIN INIT INFO +# Provides: bacula-dir +# Required-Start: $local_fs $remote_fs $network $time +# Required-Stop: $local_fs $remote_fs $network $time +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Bacula Director +# Description: Bacula is a network backup and restore program +### END INIT INFO + + NAME="bacula-dir" DESC="Bacula Director" DAEMON=@sbindir@/${NAME} diff --git a/bacula/platforms/ubuntu/bacula-fd.in b/bacula/platforms/ubuntu/bacula-fd.in index 87d9bf00d7..17d3d04dbb 100644 --- a/bacula/platforms/ubuntu/bacula-fd.in +++ b/bacula/platforms/ubuntu/bacula-fd.in @@ -9,6 +9,17 @@ # For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@ # +### BEGIN INIT INFO +# Provides: bacula-fd +# Required-Start: $local_fs $remote_fs $network $time +# Required-Stop: $local_fs $remote_fs $network $time +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Bacula File Daemon +# Description: Bacula is a network backup and restore program +### END INIT INFO + + NAME="bacula-fd" DESC="Bacula File Daemon" DAEMON=@sbindir@/${NAME} diff --git a/bacula/platforms/ubuntu/bacula-sd.in b/bacula/platforms/ubuntu/bacula-sd.in index 1ddca02a44..e8c5e6c731 100644 --- a/bacula/platforms/ubuntu/bacula-sd.in +++ b/bacula/platforms/ubuntu/bacula-sd.in @@ -9,6 +9,17 @@ # For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@ # +### BEGIN INIT INFO +# Provides: bacula-sdr +# Required-Start: $local_fs $remote_fs $network $time +# Required-Stop: $local_fs $remote_fs $network $time +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Bacula Storage Daemon +# Description: Bacula is a network backup and restore program +### END INIT INFO + + NAME="bacula-sd" DESC="Bacula Storage Daemon" DAEMON=@sbindir@/${NAME} -- 2.39.5