]> git.sur5r.net Git - bacula/bacula/blob - bacula/platforms/gentoo/bacula-fd.in
- Modified detection of largefiles to always set all flags regardless
[bacula/bacula] / bacula / platforms / gentoo / bacula-fd.in
1 #!/sbin/runscript
2 #
3 # bacula       This shell script takes care of starting and stopping
4 #              the bacula File daemon for the Gentoo release.
5 #
6 # chkconfig: 2345 90 9
7 # description: It comes by night and sucks the vital essence from your computers.
8 #
9 #  For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
10 #
11
12 start() {
13        ebegin "Starting the Bacula File daemon"
14        start-stop-daemon --start --quiet --exec @sbindir@/bacula-fd -- $2 -c @sysconfdir@/bacula-fd.conf
15        eend $?
16 }
17
18 stop() {
19        ebegin "Stopping the Bacula File daemon"
20        start-stop-daemon --stop --quiet --exec @sbindir@/bacula-fd
21        eend $?
22 }
23
24 restart() {
25        stop
26        sleep 5
27        start
28 }