/[BackupPC]/upstream/2.1.0/init.d/src/suse-backuppc
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /upstream/2.1.0/init.d/src/suse-backuppc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (show annotations)
Wed Jun 22 19:12:04 2005 UTC (18 years, 10 months ago) by dpavlin
File size: 1158 byte(s)
import of version 2.1.0

1 #!/bin/sh
2 #
3 # DESCRIPTION
4 #
5 # Startup init script for BackupPC on suse linux.
6 #
7 # Distributed with BackupPC version 2.1.0, released 20 Jun 2004.
8 #
9
10 set -e
11
12 #
13 BINDIR=__INSTALLDIR__/bin
14 DATADIR=__TOPDIR__
15 USER=__BACKUPPCUSER__
16 #
17 NAME=backuppc
18 DAEMON=BackupPC
19
20 test -x $BINDIR/$DAEMON || exit 0
21
22 case "$1" in
23 start)
24 echo -n "Starting $NAME: "
25 startproc -f -p $DATADIR/log/BackupPC.pid -u $USER $BINDIR/$DAEMON -d
26 echo "ok."
27 ;;
28 stop)
29 echo -n "Stopping $NAME: "
30 start-stop-daemon --stop --pidfile $DATADIR/log/BackupPC.pid -u $USER \
31 --oknodo
32 echo "ok."
33 ;;
34 restart)
35 echo -n "Stopping $NAME: "
36 start-stop-daemon --stop --pidfile $DATADIR/log/BackupPC.pid -u $USER \
37 --oknodo
38 echo "ok."
39 echo -n "Starting $NAME: "
40 startproc -f -p $DATADIR/log/BackupPC.pid -u $USER $BINDIR/$DAEMON -d
41 echo "ok."
42 ;;
43 reload|force-reload)
44 echo "Reloading $NAME configuration files"
45 start-stop-daemon --stop --pidfile $DATADIR/log/BackupPC.pid \
46 --signal 1 -x /usr/bin/perl
47 ;;
48 *)
49 echo "Usage: /etc/init.d/$NAME {start|stop|restart|reload}"
50 exit 1
51 ;;
52 esac
53
54 exit 0

Properties

Name Value
svn:executable

  ViewVC Help
Powered by ViewVC 1.1.26