* Various changes for 3.0.0beta1
[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 Debian Linux:
33 ============
34
35 When configure.pl is run, the script debian-backuppc is created.
36
37 Copy the debian startup script:
38
39     cp debian-backuppc /etc/init.d/backuppc
40
41 Run the following command to install in rc.d:
42
43     update-rc.d backuppc defaults
44
45 Set the correct init.d rights:
46
47     chmod 755 /etc/init.d/backuppc
48
49 Usage: /etc/init.d/backuppc {start|stop|restart|reload}
50
51 Suse Linux:
52 ==========
53
54 When configure.pl is run, the script suse-backuppc is created.
55
56 Using Suse 9.0 "chkconfig --level" doesn't work, so you should run:
57
58     chkconfig backuppc 345
59     chkconfig --list backuppc
60
61 Gentoo Linux:
62 ============
63
64 When configure.pl is run, the script gentoo-backuppc and the init conf files
65 gentoo-backuppc.conf are created. They should be copied to the following
66 locations:
67
68     cp gentoo-backuppc /etc/init.d/backuppc
69     cp gentoo-backuppc.conf /etc/conf.d/backuppc
70
71 You can test it by running these commands as root:
72
73     /etc/init.d/backuppc start
74     /etc/init.d/backuppc status
75     /etc/init.d/backuppc stop
76
77 After copying these files, run the following  as root to make BackupPC to
78 start automatically at boot (at the default run level):
79
80     rc-update add backuppc default
81
82 Slackware:
83 =========
84
85 When configure.pl is run, the script slackware-backuppc is created.
86
87 Install it by running these commands as root:
88
89     cp slackware-backuppc /etc/rc.d/rc.backuppc
90     chmod 755 /etc/rc.d/rc.backuppc
91
92 then use an editor to add /etc/rc.d/rc.backuppc to /etc/rc.d/rc.local
93
94 Solaris:
95 =======
96
97 When configure.pl is run the shell script solaris-backuppc is created.
98 This should be copied to /etc/init.d and links made in /etc/rc3.d
99 and /etc/rc0.d.
100
101     cp solaris-backuppc /etc/init.d/backuppc
102     ln -s /etc/init.d/backuppc /etc/rc3.d/S85backuppc
103     ln -s /etc/init.d/backuppc /etc/rc0.d/K85backuppc
104
105 This will auto-start backuppc at run level 3 and stop it at run level 0.
106
107 (Can a Solaris user please tell me if these instructions are correct?)