c696a770fa9f63e6d6c810bd023bc41765de6b80
[BackupPC.git] / init.d / README
1 This directory contains some scripts for auto-starting BackupPC
2 on boot.
3
4 The subdirectory src contains source versions of these scripts (before
5 various absolute paths have been filled in).
6
7 Here are instrcutions for different OSs.  Please submit additions
8 or improvements to this list!
9
10 RedHat Linux:
11 ============
12
13 When configure.pl is run, the script linux-backuppc is created. It
14 should be copied to /etc/init.d/backuppc:
15
16     cp linux-backuppc /etc/init.d/backuppc
17
18 After copying it, you can test it by running these commands as root:
19
20     /etc/init.d/backuppc start
21     /etc/init.d/backuppc status
22     /etc/init.d/backuppc stop
23
24 You should then run the following commands as root:
25
26     chkconfig --add backuppc
27     chkconfig --level 345 backuppc on
28     chkconfig --list backuppc
29
30 This will auto-start backuppc at run levels 3, 4 and 5.
31
32 Solaris:
33 =======
34
35 When configure.pl is run the shell script solaris-backuppc is created.
36 This should be copied to /etc/init.d and links made in /etc/rc3.d
37 and /etc/rc0.d.
38
39     cp solaris-backuppc /etc/init.d/backuppc
40     ln -s /etc/init.d/backuppc /etc/rc3.d/S85backuppc
41     ln -s /etc/init.d/backuppc /etc/rc0.d/K85backuppc
42
43 This will auto-start backuppc at run level 3 and stop it at run level 0.
44
45 *** NOTE: the solaris startup script and instructions have not been tested ***