/[BackupPC]/trunk/init.d/src/solaris-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

Annotation of /trunk/init.d/src/solaris-backuppc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 316 - (hide annotations)
Mon Jan 30 13:37:17 2006 UTC (18 years, 5 months ago) by dpavlin
File size: 914 byte(s)
 r9152@llin:  dpavlin | 2006-01-30 14:11:45 +0100
 update to upstream 2.1.2

1 dpavlin 1 #!/bin/sh
2     #
3     # DESCRIPTION
4     #
5     # Startup init script for BackupPC for solaris.
6     #
7 dpavlin 316 # Distributed with BackupPC version 2.1.2, released 5 Sep 2005.
8 dpavlin 1 #
9     # Not tested...
10     #
11    
12     start() {
13     #
14     # You can set the SMB share password here is you wish. Otherwise
15     # you should put it in the config.pl script.
16     # If you put it here make sure this file has no read permissions
17     # for normal users! See the documentation for more information.
18     #
19     #BPC_SMB_PASSWD=
20     #export BPC_SMB_PASSWD
21     #
22     su __BACKUPPCUSER__ -c "__INSTALLDIR__/bin/BackupPC -d"
23     }
24    
25     stop() {
26     /usr/bin/pkill -f "__INSTALLDIR__/bin/BackupPC -d"
27     }
28    
29     restart() {
30     stop
31     start
32     }
33    
34     reload() {
35     /usr/bin/pkill -1 -f "__INSTALLDIR__/bin/BackupPC -d"
36     }
37    
38     case "$1" in
39     start)
40     start
41     ;;
42     stop)
43     stop
44     ;;
45     restart)
46     restart
47     ;;
48     reload)
49     reload
50     ;;
51     *)
52     echo "Usage: $0 {start|stop|restart|reload}"
53     exit 1
54     esac
55    
56     exit $?

Properties

Name Value
svn:executable

  ViewVC Help
Powered by ViewVC 1.1.26