← pagan-scripts

Commit 5d3bc38

149
plików
+6965
dodanych
-0
usuniętych
@@ -0,0 +1,42 @@
1 +include Makefile.inc
2 +DIRSCRIPTS = scripts
3 +
4 +DIRSERVICES = services
5 +
6 +.PHONY: all
7 +
8 +
9 +all:
10 + $(MAKE) -C $(DIRSRC)
11 +
12 +install: all
13 +
14 + $(MAKE) -C $(DIRSCRIPTS) install
15 + $(MAKE) -C $(DIRMAN) install
16 +
17 +clean:
18 +
19 + $(MAKE) -C $(DIRSRC) clean
20 +
21 +install-sysd-%:
22 + $(MAKE) -C $(DIRSERVICES)/sysd $@
23 +
24 +install-sysv-%:
25 + $(MAKE) -C $(DIRSERVICES)/sysv $@
26 +
27 +uninstall-sysd-%:
28 + $(MAKE) -C $(DIRSERVICES)/sysd $@
29 +
30 +uninstall-sysv-%:
31 + $(MAKE) -C $(DIRSERVICES)/sysv $@
32 +
33 +
34 +dist: distclean
35 +
36 + git archive --format=tar --prefix=$(NAME)/ HEAD | tar -x
37 + git log > $(NAME)/ChangeLog
38 + tar cJvf $(NAME).tar.xz $(NAME)
39 + rm -rf $(NAME)
40 +
41 +distclean:
42 + rm -rf $(NAME).tar.xz
0 43 new file mode 100644
@@ -0,0 +1,28 @@
1 +# SPDX-License-Identifier: LGPL-2.1-or-later
2 +# Copyright (c) 2007 - .... by PaganLinux (paganlinux.eu)
3 +
4 +DESTDIR =
5 +
6 +LIBDIR = ${DESTDIR}/lib
7 +USRBINDIR = ${DESTDIR}/usr/bin
8 +BINDIR = ${DESTDIR}/bin
9 +SBINDIR = ${DESTDIR}/sbin
10 +MANDIR = ${DESTDIR}/usr/share/man
11 +USRLIBDIR = ${DESTDIR}/usr/lib
12 +INITDIR = ${LIBDIR}/init
13 +ETCDIR = ${DESTDIR}/etc
14 +SERVICEDIR=${INITDIR}/services
15 +ROOTDIR=${DESTDIR}/root
16 +VARDIR=${DESTDIR}/var
17 +EXTDIR=${ETCDIR}
18 +
19 +VERSION = 20260822
20 +
21 +NAME = pagan-scripts-$(VERSION)
22 +
23 +MODE = 754
24 +FILEMODE = 754
25 +DIRMODE = 755
26 +CONFMODE = 644
27 +
28 +# End of file
0 29 new file mode 100644
@@ -0,0 +1,4 @@
1 +All the sysV services scripts and the systemd unit
2 +that are not part of the packages will be manage in this project.
3 +
4 +All contributions are welcome
0 5 new file mode 100644
@@ -0,0 +1,469 @@
1 +SHELL=/bin/bash
2 +
3 +EXTDIR=${DESTDIR}/etc
4 +DEFAULTSDIR=${DESTDIR}/etc/default
5 +TMPFILESDIR=${DESTDIR}/usr/lib/tmpfiles.d
6 +UNITSDIR=${DESTDIR}/usr/lib/systemd/system
7 +MODE=755
8 +DIRMODE=755
9 +CONFMODE=644
10 +
11 +all:
12 + @grep "^install" Makefile.systemd | cut -d ":" -f 1
13 + @echo "Select an appropriate install target from the above list"
14 +
15 +create-dirs:
16 + install -d -m ${DIRMODE} ${DEFAULTSDIR}
17 + install -d -m ${DIRMODE} ${TMPFILESDIR}
18 + install -d -m ${DIRMODE} ${UNITSDIR}
19 +
20 +install-sysd-service-setup-pagan: create-dirs
21 + install -m ${MODE} units/setup-pagan.service ${UNITSDIR}
22 + install -d ${DIRMODE} ${UNITSDIR}/sysinit.target.wants
23 + ln -sv ../setup-pagan.service ${UNITSDIR}/sysinit.target.wants
24 +
25 +install-sysd-acpid: create-dirs
26 + install -m ${CONFMODE} units/acpid.service ${UNITSDIR}/
27 + install -m ${CONFMODE} units/acpid.socket ${UNITSDIR}/
28 + test -n "${DESTDIR}" || systemctl enable acpid.socket
29 +
30 +install-sysd-dhclient: create-dirs
31 + install -m ${CONFMODE} units/dhclientat.service ${UNITSDIR}/dhclient@.service
32 +
33 +install-sysd-dhcpcd: create-dirs
34 + install -m ${CONFMODE} units/dhcpcdat.service ${UNITSDIR}/dhcpcd@.service
35 +
36 +install-sysd-dhcpd: create-dirs
37 + install -m ${CONFMODE} default/dhcpd ${DEFAULTSDIR}/
38 + install -m ${CONFMODE} units/dhcpd.service ${UNITSDIR}/
39 + test -n "${DESTDIR}" || systemctl enable dhcpd.service
40 +
41 +install-sysd-exim: create-dirs
42 + install -m ${CONFMODE} units/exim.service ${UNITSDIR}/
43 + test -n "${DESTDIR}" || systemctl enable exim.service
44 +
45 +install-sysd-git: create-dirs
46 + install -m ${CONFMODE} units/git-daemonat.service ${UNITSDIR}/git-daemon@.service
47 + install -m ${CONFMODE} units/git-daemon.socket ${UNITSDIR}/
48 + test -n "${DESTDIR}" || systemctl enable git-daemon.socket
49 +
50 +install-sysd-gpm: create-dirs
51 + install -m ${CONFMODE} units/gpm.service ${UNITSDIR}/
52 + test -n "${DESTDIR}" || systemctl enable gpm.service
53 +
54 +install-sysd-haveged: create-dirs
55 + install -m ${CONFMODE} units/haveged.service ${UNITSDIR}/
56 + test -n "${DESTDIR}" || systemctl enable haveged.service
57 +
58 +install-sysd-httpd: create-dirs
59 + install -m ${CONFMODE} tmpfiles/httpd.conf ${TMPFILESDIR}/
60 + install -m ${CONFMODE} units/httpd.service ${UNITSDIR}/
61 + test -n "${DESTDIR}" || /bin/systemd-tmpfiles --create httpd.conf
62 + test -n "${DESTDIR}" || systemctl enable httpd.service
63 +
64 +install-sysd-nginx: create-dirs
65 + install -m ${CONFMODE} units/nginx.service ${UNITSDIR}/
66 + test -n "${DESTDIR}" || systemctl enable nginx.service
67 +
68 +install-sysd-iptables: create-dirs
69 + install -m ${CONFMODE} units/iptables.service ${UNITSDIR}/
70 + test -n "${DESTDIR}" || systemctl enable iptables.service
71 +
72 +install-sysd-kdm: create-dirs
73 + install -m ${CONFMODE} units/kdm.service ${UNITSDIR}/
74 + test -n "${DESTDIR}" || systemctl enable kdm.service
75 +
76 +install-sysd-krb5: create-dirs
77 + install -m ${CONFMODE} units/krb5-kdc.service ${UNITSDIR}/
78 + install -m ${CONFMODE} units/krb5-kpropd.service ${UNITSDIR}/
79 + install -m ${CONFMODE} units/krb5-kadmind.service ${UNITSDIR}/
80 + test -n "${DESTDIR}" || systemctl enable krb5-kdc.service
81 + test -n "${DESTDIR}" || systemctl enable krb5-kpropd.service
82 + test -n "${DESTDIR}" || systemctl enable krb5-kadmind.service
83 +
84 +install-sysd-lightdm: create-dirs
85 + install -m ${CONFMODE} units/lightdm.service ${UNITSDIR}/
86 + test -n "${DESTDIR}" || systemctl enable lightdm.service
87 +
88 +install-sysd-mysqld: create-dirs
89 + install -m ${CONFMODE} tmpfiles/mysqld.conf ${TMPFILESDIR}/
90 + install -m ${CONFMODE} units/mysqld.service ${UNITSDIR}/
91 + test -n "${DESTDIR}" || systemd-tmpfiles --create mysqld.conf
92 + test -n "${DESTDIR}" || systemctl enable mysqld.service
93 +
94 +install-sysd-named: create-dirs
95 + install -m ${CONFMODE} tmpfiles/named.conf ${TMPFILESDIR}/
96 + install -m ${CONFMODE} units/named.service ${UNITSDIR}/
97 + test -n "${DESTDIR}" || /bin/systemd-tmpfiles --create named.conf
98 + test -n "${DESTDIR}" || systemctl enable named.service
99 +
100 +install-sysd-nfs-client: create-dirs
101 + install -m ${CONFMODE} default/nfs-utils ${DEFAULTSDIR}/
102 + install -m ${CONFMODE} units/rpc-statd.service ${UNITSDIR}/
103 + install -m ${CONFMODE} units/rpc-statd-notify.service ${UNITSDIR}/
104 + install -m ${CONFMODE} units/nfs-client.service ${UNITSDIR}/
105 + install -m ${CONFMODE} units/nfs-client.target ${UNITSDIR}/
106 + test -n "${DESTDIR}" || systemctl enable nfs-client.target
107 +
108 +install-sysd-nfs-server: install-sysd-nfs-client
109 + install -m ${CONFMODE} units/nfs-server.service ${UNITSDIR}/
110 + install -m ${CONFMODE} units/rpc-mountd.service ${UNITSDIR}/
111 + install -m ${CONFMODE} units/proc-fs-nfsd.mount ${UNITSDIR}/
112 + test -n "${DESTDIR}" || systemctl enable nfs-server.service
113 +
114 +install-sysd-nfsv4-server: install-sysd-nfs-server
115 + install -m ${CONFMODE} units/rpc-idmapd.service ${UNITSDIR}/
116 + install -m ${CONFMODE} units/var-lib-nfs-rpc_pipefs.mount ${UNITSDIR}/
117 +
118 +install-sysd-ntpd: create-dirs
119 + install -m ${CONFMODE} units/ntpd.service ${UNITSDIR}/
120 + install -d -m ${DIRMODE} ${DESTDIR}/usr/lib/systemd/ntp-units.d
121 + test -n "${DESTDIR}" || systemctl enable ntpd.service
122 +
123 +install-sysd-php-fpm: create-dirs
124 + install -m ${CONFMODE} units/php-fpm.service ${UNITSDIR}/
125 + test -n "${DESTDIR}" || systemctl enable php-fpm.service
126 +
127 +install-sysd-postfix: create-dirs
128 + install -m ${CONFMODE} units/postfix.service ${UNITSDIR}/
129 + test -n "${DESTDIR}" || systemctl enable postfix.service
130 +
131 +install-sysd-postgresql: create-dirs
132 + install -m ${CONFMODE} tmpfiles/postgresql.conf ${TMPFILESDIR}/
133 + install -m ${CONFMODE} units/postgresql.service ${UNITSDIR}/
134 + test -n "${DESTDIR}" || systemd-tmpfiles --create postgresql.conf
135 + test -n "${DESTDIR}" || systemctl enable postgresql.service
136 +
137 +install-sysd-proftpd: create-dirs
138 + install -m ${CONFMODE} units/proftpd.service ${UNITSDIR}/
139 + test -n "${DESTDIR}" || systemctl enable proftpd.service
140 +
141 +install-sysd-rpcbind: create-dirs
142 + install -m ${CONFMODE} units/rpcbind.service ${UNITSDIR}/
143 + install -m ${CONFMODE} units/rpcbind.socket ${UNITSDIR}/
144 + test -n "${DESTDIR}" || systemctl enable rpcbind.socket
145 +
146 +install-sysd-rsyncd: create-dirs
147 + install -m ${CONFMODE} units/rsyncd.service ${UNITSDIR}/
148 + install -m ${CONFMODE} units/rsyncdat.service ${UNITSDIR}/rsyncd@.service
149 + install -m ${CONFMODE} units/rsyncd.socket ${UNITSDIR}/
150 + test -n "${DESTDIR}" || systemctl enable rsyncd.service
151 +
152 +install-sysd-samba: create-dirs
153 + install -m ${CONFMODE} default/samba ${DEFAULTSDIR}/
154 + install -m ${CONFMODE} tmpfiles/samba.conf ${TMPFILESDIR}/
155 + install -m ${CONFMODE} units/nmbd.service ${UNITSDIR}/
156 + install -m ${CONFMODE} units/samba.service ${UNITSDIR}/
157 + install -m ${CONFMODE} units/smbd.service ${UNITSDIR}/
158 + install -m ${CONFMODE} units/smbdat.service ${UNITSDIR}/smbd@.service
159 + install -m ${CONFMODE} units/smbd.socket ${UNITSDIR}/
160 + test -n "${DESTDIR}" || systemctl enable nmbd.service
161 + test -n "${DESTDIR}" || systemctl enable smbd.service
162 +
163 +install-sysd-saslauthd: create-dirs
164 + install -m ${CONFMODE} default/saslauthd ${DEFAULTSDIR}/
165 + install -m ${CONFMODE} tmpfiles/saslauthd.conf ${TMPFILESDIR}/
166 + install -m ${CONFMODE} units/saslauthd.service ${UNITSDIR}/
167 + test -n "${DESTDIR}" || systemd-tmpfiles --create saslauthd.conf
168 + test -n "${DESTDIR}" || systemctl enable saslauthd.service
169 +
170 +install-sysd-sendmail: create-dirs
171 + install -m ${CONFMODE} default/sendmail ${DEFAULTSDIR}/
172 + install -m ${CONFMODE} units/sm-client.service ${UNITSDIR}/
173 + install -m ${CONFMODE} units/sendmail.service ${UNITSDIR}/
174 + test -n "${DESTDIR}" || systemctl enable sendmail.service
175 +
176 +install-sysd-slapd: create-dirs
177 + install -m ${CONFMODE} default/slapd ${DEFAULTSDIR}/
178 + install -m ${CONFMODE} tmpfiles/slapd.conf ${TMPFILESDIR}/
179 + install -m ${CONFMODE} units/slapd.service ${UNITSDIR}/
180 + test -n "${DESTDIR}" || systemd-tmpfiles --create slapd.conf
181 + test -n "${DESTDIR}" || systemctl enable slapd.service
182 +
183 +install-sysd-sshd: create-dirs
184 + install -m ${CONFMODE} units/sshd.service ${UNITSDIR}/
185 + install -m ${CONFMODE} units/sshdgenkeys.service ${UNITSDIR}/
186 + install -m ${CONFMODE} units/sshdat.service ${UNITSDIR}/sshd@.service
187 + install -m ${CONFMODE} units/sshd.socket ${UNITSDIR}/
188 + test -n "${DESTDIR}" || systemctl enable sshd.service
189 +
190 +install-sysd-svnserve: create-dirs
191 + install -m ${CONFMODE} default/svnserve ${DEFAULTSDIR}/
192 + install -m ${CONFMODE} tmpfiles/svnserve.conf ${TMPFILESDIR}/
193 + install -m ${CONFMODE} units/svnserve.service ${UNITSDIR}/
194 + test -n "${DESTDIR}" || systemd-tmpfiles --create svnserve.conf
195 + test -n "${DESTDIR}" || systemctl enable svnserve.service
196 +
197 +install-sysd-unbound: create-dirs
198 + install -m ${CONFMODE} units/unbound.service ${UNITSDIR}/
199 + test -n "${DESTDIR}" || systemctl enable unbound.service
200 +
201 +install-sysd-vsftpd: create-dirs
202 + install -m ${CONFMODE} units/vsftpd.service ${UNITSDIR}/
203 + test -n "${DESTDIR}" || systemctl enable vsftpd.service
204 +
205 +install-sysd-winbindd: install-samba
206 + install -m ${CONFMODE} units/winbindd.service ${UNITSDIR}/
207 + test -n "${DESTDIR}" || systemctl enable winbindd.service
208 +
209 +install-sysd-xinetd: create-dirs
210 + install -m ${CONFMODE} units/xinetd.service ${UNITSDIR}/
211 + test -n "${DESTDIR}" || systemctl enable xinetd.service
212 +
213 +uninstall-sysd-acpid:
214 + test -n "${DESTDIR}" || systemctl stop acpid.service
215 + test -n "${DESTDIR}" || systemctl disable acpid.socket
216 + rm -f ${UNITSDIR}/acpid.service ${UNITSDIR}/acpid.socket
217 +
218 +uninstall-sysd-dhclient:
219 + rm -f ${UNITSDIR}/dhclient@.service
220 +
221 +uninstall-sysd-dhcpcd:
222 + rm -f ${UNITSDIR}/dhcpcd@.service
223 +
224 +uninstall-sysd-dhcpd:
225 + test -n "${DESTDIR}" || systemctl stop dhcpd.service
226 + test -n "${DESTDIR}" || systemctl disable dhcpd.service
227 + rm -f ${DEFAULTSDIR}/dhcpd ${UNITSDIR}/dhcpd.service
228 +
229 +uninstall-sysd-exim:
230 + test -n "${DESTDIR}" || systemctl stop exim.service
231 + test -n "${DESTDIR}" || systemctl disable exim.service
232 + rm -f ${UNITSDIR}/exim.service
233 +
234 +uninstall-sysd-git:
235 + test -n "${DESTDIR}" || systemctl stop git-daemon.socket
236 + test -n "${DESTDIR}" || systemctl disable git-daemon.socket
237 + rm -f ${UNITSDIR}/git-daemon@.service ${UNITSDIR}/git-daemon.socket
238 +
239 +uninstall-sysd-gpm:
240 + test -n "${DESTDIR}" || systemctl stop gpm.service
241 + test -n "${DESTDIR}" || systemctl disable gpm.service
242 + rm -f ${UNITSDIR}/gpm.service
243 +
244 +uninstall-sysd-haveged:
245 + test -n "${DESTDIR}" || systemctl stop haveged.service
246 + test -n "${DESTDIR}" || systemctl disable haveged.service
247 + rm -f ${UNITSDIR}/haveged.service
248 +
249 +uninstall-sysd-httpd:
250 + test -n "${DESTDIR}" || systemctl stop httpd.service
251 + test -n "${DESTDIR}" || systemctl disable httpd.service
252 + rm -f ${TMPFILESDIR}/httpd.conf ${UNITSDIR}/httpd.service
253 +
254 +uninstall-sysd-nginx:
255 + test -n "${DESTDIR}" || systemctl stop nginx.service
256 + test -n "${DESTDIR}" || systemctl disable nginx.service
257 + rm -f ${UNITSDIR}/nginx.service
258 +
259 +uninstall-sysd-iptables:
260 + test -n "${DESTDIR}" || systemctl disable iptables.service
261 + rm -f ${UNITSDIR}/iptables.service
262 +
263 +uninstall-sysd-kdm:
264 + test -n "${DESTDIR}" || systemctl stop kdm.service
265 + test -n "${DESTDIR}" || systemctl disable kdm.service
266 + rm -f ${UNITSDIR}/kdm.service
267 +
268 +uninstall-sysd-krb5:
269 + test -n "${DESTDIR}" || systemctl stop krb5-kadmind.service
270 + test -n "${DESTDIR}" || systemctl stop krb5-kpropd.service
271 + test -n "${DESTDIR}" || systemctl stop krb5-kdc.service
272 + test -n "${DESTDIR}" || systemctl disable krb5-kadmind.service
273 + test -n "${DESTDIR}" || systemctl disable krb5-kpropd.service
274 + test -n "${DESTDIR}" || systemctl disable krb5-kdc.service
275 + rm -f ${UNITSDIR}/krb5-kadmind.service ${UNITSDIR}/krb5-kpropd.service ${UNITSDIR}/krb5-kdc.service
276 +
277 +uninstall-sysd-lightdm:
278 + test -n "${DESTDIR}" || systemctl stop lightdm.service
279 + test -n "${DESTDIR}" || systemctl disable lightdm.service
280 + rm -f ${UNITSDIR}/lightdm.service
281 +
282 +uninstall-sysd-mysqld:
283 + test -n "${DESTDIR}" || systemctl stop mysqld.service
284 + test -n "${DESTDIR}" || systemctl disable mysqld.service
285 + rm -f ${TMPFILESDIR}/mysqld.conf ${UNITSDIR}/mysqld.service
286 +
287 +uninstall-sysd-named:
288 + test -n "${DESTDIR}" || systemctl stop named.service
289 + test -n "${DESTDIR}" || systemctl disable named.service
290 + rm -f ${TMPFILESDIR}/named.conf ${UNITSDIR}/named.service
291 +
292 +uninstall-sysd-nfs-client: uninstall-sysd-nfs-server
293 + test -n "${DESTDIR}" || systemctl stop nfs-client.target
294 + test -n "${DESTDIR}" || systemctl disable nfs-client.target
295 + rm -f ${DEFAULTSDIR}/nfs-utils ${UNITSDIR}/nfs-client.target
296 + rm -f ${UNITSDIR}/nfs-client.service ${UNITSDIR}/rpc-statd.service ${UNITSDIR}/rpc-statd-notify.service
297 +
298 +uninstall-sysd-nfs-server: uninstall-sysd-nfsv4-server
299 + if [[ -z "${DESTDIR}" ]]; then test -e "${UNITSDIR}/nfs-server.service" && systemctl stop nfs-server.service; fi
300 + if [[ -z "${DESTDIR}" ]]; then test -e "${UNITSDIR}/nfs-server.service" && systemctl disable nfs-server.service; fi
301 + rm -f ${UNITSDIR}/nfs-server.service ${UNITSDIR}/rpc-mountd.service
302 + rm -f ${UNITSDIR}/proc-fs-nfsd.mount
303 +
304 +uninstall-sysd-nfsv4-server:
305 + rm -f ${UNITSDIR}/rpc-idmapd.service
306 + rm -f ${UNITSDIR}/var-lib-nfs-rpc_pipefs.mount
307 +
308 +uninstall-sysd-ntpd:
309 + test -n "${DESTDIR}" || systemctl stop ntpd.service
310 + test -n "${DESTDIR}" || systemctl disable ntpd.service
311 + rm -f ${UNITSDIR}/ntpd.service
312 +
313 +uninstall-sysd-php-fpm:
314 + test -n "${DESTDIR}" || systemctl stop php-fpm.service
315 + test -n "${DESTDIR}" || systemctl disable php-fpm.service
316 + rm -f ${UNITSDIR}/php-fpm.service
317 +
318 +uninstall-sysd-postfix:
319 + test -n "${DESTDIR}" || systemctl stop postfix.service
320 + test -n "${DESTDIR}" || systemctl disable postfix.service
321 + rm -f ${UNITSDIR}/postfix.service
322 +
323 +uninstall-sysd-postgresql:
324 + test -n "${DESTDIR}" || systemctl stop postgresql.service
325 + test -n "${DESTDIR}" || systemctl disable postgresql.service
326 + rm -f ${TMPFILESDIR}/postgresql.conf ${UNITSDIR}/postgresql.service
327 +
328 +uninstall-sysd-proftpd:
329 + test -n "${DESTDIR}" || systemctl stop proftpd.service
330 + test -n "${DESTDIR}" || systemctl disable proftpd.service
331 + rm -f ${UNITSDIR}/proftpd.service
332 +
333 +uninstall-sysd-rpcbind:
334 + test -n "${DESTDIR}" || systemctl stop rpcbind.socket
335 + test -n "${DESTDIR}" || systemctl disable rpcbind.socket
336 + rm -f ${UNITSDIR}/rpcbind.service ${UNITSDIR}/rpcbind.socket
337 +
338 +uninstall-sysd-rsyncd:
339 + test -n "${DESTDIR}" || systemctl stop rsyncd.socket
340 + test -n "${DESTDIR}" || systemctl stop rsyncd.service
341 + rm -f ${UNITSDIR}/rsyncd.service ${UNITSDIR}/rsyncd@.service
342 + rm -f ${UNITSDIR}/rsyncd.socket
343 +
344 +uninstall-sysd-samba: uninstall-winbindd
345 + test -n "${DESTDIR}" || systemctl stop smbd.socket
346 + test -n "${DESTDIR}" || systemctl stop smbd.service
347 + test -n "${DESTDIR}" || systemctl stop nmbd.service
348 + test -n "${DESTDIR}" || systemctl disable smbd.socket
349 + test -n "${DESTDIR}" || systemctl disable smbd.service
350 + test -n "${DESTDIR}" || systemctl disable nmbd.service
351 + rm -f ${DEFAULTSDIR}/samba ${TMPFILESDIR}/samba.conf ${UNITSDIR}/nmbd.service
352 + rm -f ${UNITSDIR}/smbd.service ${UNITSDIR}/smbd@.service ${UNITSDIR}/smbd.socket
353 +
354 +uninstall-sysd-saslauthd:
355 + test -n "${DESTDIR}" || systemctl stop saslauthd.service
356 + test -n "${DESTDIR}" || systemctl disable saslauthd.service
357 + rm -f ${DEFAULTSDIR}/saslauthd ${TMPFILESDIR}/saslauthd.conf ${UNITSDIR}/saslauthd.service
358 +
359 +uninstall-sysd-sendmail:
360 + test -n "${DESTDIR}" || systemctl stop sendmail.service
361 + test -n "${DESTDIR}" || systemctl disable sendmail.service
362 + rm -f ${DEFAULTSDIR}/sendmail ${UNITSDIR}/sm-client.service ${UNITSDIR}/sendmail.service
363 +
364 +uninstall-sysd-slapd:
365 + test -n "${DESTDIR}" || systemctl stop slapd.service
366 + test -n "${DESTDIR}" || systemctl disable slapd.service
367 + rm -f ${DEFAULTSDIR}/slapd ${TMPFILESDIR}/slapd.conf ${UNITSDIR}/slapd.service
368 +
369 +uninstall-sysd-sshd:
370 + test -n "${DESTDIR}" || systemctl stop sshd.socket
371 + test -n "${DESTDIR}" || systemctl stop sshd.service
372 + test -n "${DESTDIR}" || systemctl disable sshd.socket
373 + test -n "${DESTDIR}" || systemctl disable sshd.service
374 + rm -f ${UNITSDIR}/sshd.service ${UNITSDIR}/sshd@.service ${UNITSDIR}/sshd.socket
375 +
376 +uninstall-sysd-svnserve:
377 + test -n "${DESTDIR}" || systemctl stop svnserve.service
378 + test -n "${DESTDIR}" || systemctl disable svnserve.service
379 + rm -f ${DEFAULTSDIR}/svnserve ${TMPFILESDIR}/svnserve.conf ${UNITSDIR}/svnserve.service
380 +
381 +uninstall-sysd-unbound:
382 + test -n "${DESTDIR}" || systemctl stop unbound.service
383 + test -n "${DESTDIR}" || systemctl disable unbound.service
384 + rm -f ${UNITSDIR}/unbound.service
385 +
386 +uninstall-sysd-vsftpd:
387 + test -n "${DESTDIR}" || systemctl stop vsftpd.service
388 + test -n "${DESTDIR}" || systemctl disable vsftpd.service
389 + rm -f ${UNITSDIR}/vsftpd.service
390 +
391 +uninstall-sysd-winbindd:
392 + test -n "${DESTDIR}" || systemctl stop winbindd.service
393 + test -n "${DESTDIR}" || systemctl disable winbindd.service
394 + rm -f ${UNITSDIR}/winbindd.service
395 +
396 +uninstall-sysd-xinetd:
397 + test -n "${DESTDIR}" || systemctl stop xinetd.service
398 + test -n "${DESTDIR}" || systemctl disable xinetd.service
399 + rm -f ${UNITSDIR}/xinetd.service
400 +
401 +.PHONY: all create-dirs \
402 + install-sysd-acpid \
403 + install-sysd-dhclient \
404 + install-sysd-dhcpcd \
405 + install-sysd-dhcpd \
406 + install-sysd-exim \
407 + install-sysd-git \
408 + install-sysd-gpm \
409 + install-sysd-httpd \
410 + install-sysd-nginx \
411 + install-sysd-iptables \
412 + install-sysd-kdm \
413 + install-sysd-krb5 \
414 + install-sysd-mysqld \
415 + install-sysd-named \
416 + install-sysd-nfs-client \
417 + install-sysd-nfs-server \
418 + install-sysd-nfsv4-server \
419 + install-sysd-ntp \
420 + install-sysd-php-fpm \
421 + install-sysd-postfix \
422 + install-sysd-postgresql \
423 + install-sysd-proftpd \
424 + install-sysd-rpcbind \
425 + install-sysd-rsyncd \
426 + install-sysd-samba \
427 + install-sysd-saslauthd \
428 + install-sysd-sendmail \
429 + install-sysd-slapd \
430 + install-sysd-sshd \
431 + install-sysd-svnserve \
432 + install-sysd-unbound \
433 + install-sysd-vsftpd \
434 + install-sysd-winbindd \
435 + install-sysd-xinetd \
436 + uninstall-sysd-acpid \
437 + uninstall-sysd-dhclient \
438 + uninstall-sysd-dhcpcd \
439 + uninstall-sysd-dhcpd \
440 + uninstall-sysd-exim \
441 + uninstall-sysd-git \
442 + uninstall-sysd-gpm \
443 + uninstall-sysd-httpd \
444 + uninstall-sysd-nginx \
445 + uninstall-sysd-iptables \
446 + uninstall-sysd-kdm \
447 + uninstall-sysd-krb5 \
448 + uninstall-sysd-mysqld \
449 + uninstall-sysd-named \
450 + uninstall-sysd-nfs-client \
451 + uninstall-sysd-nfs-server \
452 + uninstall-sysd-nfsv4-server \
453 + uninstall-sysd-ntpd \
454 + uninstall-sysd-php-fpm \
455 + uninstall-sysd-postfix \
456 + uninstall-sysd-postgresql \
457 + uninstall-sysd-proftpd \
458 + uninstall-sysd-rpcbind \
459 + uninstall-sysd-rsyncd \
460 + uninstall-sysd-samba \
461 + uninstall-sysd-saslauthd \
462 + uninstall-sysd-sendmail \
463 + uninstall-sysd-slapd \
464 + uninstall-sysd-sshd \
465 + uninstall-sysd-svnserve \
466 + uninstall-sysd-unbound \
467 + uninstall-sysd-vsftpd \
468 + uninstall-sysd-winbindd \
469 + uninstall-sysd-xinetd
0 470 new file mode 100644
@@ -0,0 +1,6 @@
1 +# Begin /etc/default/dhcpd
2 +
3 +# Options to pass to dhcpd.
4 +DHCPD_OPTS=""
5 +
6 +# End /etc/default/dhcpd
0 7 new file mode 100644
@@ -0,0 +1,25 @@
1 +# Begin /etc/default/nfs-utils
2 +
3 +# Options to pass to rpc.idmapd.
4 +# See rpc.idmapd(8) for more details.
5 +IDMAPD_OPTS=""
6 +
7 +# Options to paass to rpc.mountd.
8 +# If you have a port-based firewall, you might want to set up
9 +# a fixed port here using the --port option.
10 +# See rpc.mountd(8) for more details.
11 +MOUNTD_OPTS=""
12 +
13 +# Options to pass to rpc.nfsd.
14 +# See rpc.nfsd(8) for more details.
15 +NFSD_OPTS=""
16 +
17 +# Options to pass to sm-notify.
18 +# See sm-notify(8) for more details.
19 +SM_NOTIFY_OPTS=""
20 +
21 +# Options to pass to rpc.statd.
22 +# See rpc.statd(8) for more details.
23 +STATD_OPTS=""
24 +
25 +# End /etc/default/nfs-utils
0 26 new file mode 100644
@@ -0,0 +1,15 @@
1 +# Begin /etc/default/samba
2 +
3 +# Options to pass to nmbd.
4 +NMBD_OPTS=
5 +
6 +# Options to pass to samba.
7 +SAMBA_OPTS=
8 +
9 +# Options to pass to smbd.
10 +SMBD_OPTS=
11 +
12 +# Options to pass to winbindd.
13 +WINBINDD_OPTS=
14 +
15 +# End /etc/default/samba
0 16 new file mode 100644
@@ -0,0 +1,36 @@
1 +# Begin /etc/default/saslauthd
2 +
3 +# Which authentication mechanisms should saslauthd use? (default: shadow)
4 +#
5 +# Available options in this package:
6 +# getpwent -- use the getpwent() library function
7 +# kerberos5 -- use Kerberos 5
8 +# pam -- use PAM
9 +# rimap -- use a remote IMAP server
10 +# shadow -- use the local shadow password file
11 +# sasldb -- use the local sasldb database file
12 +# ldap -- use LDAP (configuration is in /etc/saslauthd.conf)
13 +#
14 +# Only one option may be used at a time. See the saslauthd man page
15 +# for more information.
16 +#
17 +# Example: MECHANISMS="shadow"
18 +MECHANISMS="shadow"
19 +
20 +# Additional options for this mechanism. (default: none)
21 +# See the saslauthd man page for information about mech-specific options.
22 +# Note: Specify "-O options" in the following variable or saslauthd will fail.
23 +MECH_OPTIONS=""
24 +
25 +# How many saslauthd processes should we run? (default: 5)
26 +# A value of 0 will fork a new process for each connection.
27 +THREADS=5
28 +
29 +# Other options (default: -c -m /var/run/saslauthd)
30 +# Note: You MUST specify the -m option or saslauthd won't run!
31 +#
32 +# See the saslauthd man page and the output of 'saslauthd -h' for general
33 +# information about these options.
34 +SASLAUTHD_OPTS="-c -m /var/run/saslauthd"
35 +
36 +# End /etc/default/saslauthd
0 37 new file mode 100644
@@ -0,0 +1,6 @@
1 +# Begin /etc/default/sendmail
2 +
3 +# Options to pass to sendmail.
4 +SENDMAIL_OPTS="-q5m"
5 +
6 +# End /etc/default/sendmail
0 7 new file mode 100644
@@ -0,0 +1,12 @@
1 +# Begin /etc/default/slapd
2 +
3 +# Options to pass to slapd.
4 +# See slapd(8) for more details.
5 +#SLAPD_OPTS=""
6 +
7 +# slapd normally serves ldap only on all TCP-ports 389. slapd can also
8 +# service requests on TCP-port 636 (ldaps) and requests via unix
9 +# sockets.
10 +#SLAPD_OPTS='-h "ldap://127.0.0.1:389/ ldaps:/// ldapi:///"'
11 +
12 +# End /etc/default/slapd
0 13 new file mode 100644
@@ -0,0 +1,8 @@
1 +# Begin /etc/default/svnserve
2 +
3 +# Options to pass to svnserve.
4 +#
5 +# Example: -r /srv/svn/repositories
6 +SVNSERVE_OPTS="-r /srv/svn/repositories"
7 +
8 +# End /etc/default/svnserve
0 9 new file mode 100644
@@ -0,0 +1,6 @@
1 +# Begin /etc/default/winbindd
2 +
3 +# Options to pass to winbindd.
4 +WINBINDD_OPTS=
5 +
6 +# End /etc/default/winbindd
0 7 new file mode 100644
@@ -0,0 +1 @@
1 +d /run/httpd 755 root root -
0 2 new file mode 100644
@@ -0,0 +1 @@
1 +d /run/mysqld 0755 mysql mysql -
0 2 new file mode 100644
@@ -0,0 +1 @@
1 +d /run/named 0750 named named -
0 2 new file mode 100644
@@ -0,0 +1,2 @@
1 +d /run/nscd 755 root root -
2 +
0 3 new file mode 100644
@@ -0,0 +1 @@
1 +d /run/postgresql 0775 postgres postgres -
0 2 new file mode 100644
@@ -0,0 +1 @@
1 +d /run/samba 755 root root -
0 2 new file mode 100644
@@ -0,0 +1 @@
1 +d /run/saslauthd 755 root root -
0 2 new file mode 100644
@@ -0,0 +1 @@
1 +d /run/openldap 0755 ldap ldap -
0 2 new file mode 100644
@@ -0,0 +1 @@
1 +d /run/sshd 755 root root -
0 2 new file mode 100644
@@ -0,0 +1 @@
1 +d /run/svnserve 0700 root root -
0 2 new file mode 100644
@@ -0,0 +1,7 @@
1 +[Unit]
2 +Description=ACPI event daemon
3 +Requires=acpid.socket
4 +
5 +[Service]
6 +StandardInput=socket
7 +ExecStart=/usr/bin/acpid
0 8 new file mode 100644
@@ -0,0 +1,8 @@
1 +[Unit]
2 +Description=ACPID Listen Socket
3 +
4 +[Socket]
5 +ListenStream=/run/acpid.socket
6 +
7 +[Install]
8 +WantedBy=sockets.target
0 9 new file mode 100644
@@ -0,0 +1,15 @@
1 +[Unit]
2 +Description=ISC DHCP Client on %I
3 +Wants=network.target
4 +Before=network.target
5 +BindsTo=sys-subsystem-net-devices-%i.device
6 +After=sys-subsystem-net-devices-%i.device
7 +
8 +[Service]
9 +Type=forking
10 +PIDFile=/run/dhclient-%I.pid
11 +ExecStart=/usr/bin/dhclient -pf /run/dhclient-%I.pid -lf /var/lib/dhclient/dhclient-%I.lease %I
12 +ExecStop=/usr/bin/dhclient -r -pf /run/dhclient-%I.pid -lf /var/lib/dhclient/dhclient-%I.lease %I
13 +
14 +[Install]
15 +WantedBy=multi-user.target
0 16 new file mode 100644
@@ -0,0 +1,15 @@
1 +[Unit]
2 +Description=dhcpcd on %I
3 +Wants=network.target
4 +Before=network.target
5 +BindsTo=sys-subsystem-net-devices-%i.device
6 +After=sys-subsystem-net-devices-%i.device
7 +
8 +[Service]
9 +Type=forking
10 +PIDFile=/run/dhcpcd/%I.pid
11 +ExecStart=/usr/bin/dhcpcd -q -w %I
12 +ExecStop=/usr/bin/dhcpcd -x %I
13 +
14 +[Install]
15 +WantedBy=multi-user.target
0 16 new file mode 100644
@@ -0,0 +1,11 @@
1 +[Unit]
2 +Description=ISC DHCP Server
3 +Documentation=man:dhcpd(8) man:dhcpd.conf(5)
4 +After=network.target
5 +
6 +[Service]
7 +EnvironmentFile=/etc/default/dhcpd
8 +ExecStart=/usr/bin/dhcpd -f --no-pid $DHCPD_OPTS
9 +
10 +[Install]
11 +WantedBy=multi-user.target
0 12 new file mode 100644
@@ -0,0 +1,12 @@
1 +[Unit]
2 +Description=Exim Mail Daemon
3 +After=network.target
4 +
5 +[Service]
6 +PIDFile=/run/exim.pid
7 +ExecStart=/usr/bin/exim -bdf -q30m
8 +ExecReload=/usr/bin/kill -HUP $MAINPID
9 +PrivateTmp=true
10 +
11 +[Install]
12 +WantedBy=multi-user.target
0 13 new file mode 100644
@@ -0,0 +1,9 @@
1 +[Unit]
2 +Description=Git Daemon Socket
3 +
4 +[Socket]
5 +ListenStream=9418
6 +Accept=true
7 +
8 +[Install]
9 +WantedBy=sockets.target
0 10 new file mode 100644
@@ -0,0 +1,9 @@
1 +[Unit]
2 +Description=Git Daemon Instance
3 +
4 +[Service]
5 +User=git
6 +ExecStart=-/usr/lib/git-core/git-daemon --inetd --export-all --base-path=/srv/git
7 +StandardInput=socket
8 +StandardOutput=inherit
9 +StandardError=journal
0 10 new file mode 100644
@@ -0,0 +1,9 @@
1 +[Unit]
2 +Description=Virtual console mouse server
3 +
4 +[Service]
5 +Type=forking
6 +ExecStart=/usr/bin/gpm -m /dev/input/mice -t imps2
7 +
8 +[Install]
9 +WantedBy=multi-user.target
0 10 new file mode 100644
@@ -0,0 +1,11 @@
1 +[Unit]
2 +Description=Entropy Harvesting Daemon
3 +Documentation=man:haveged(8)
4 +
5 +[Service]
6 +Type=forking
7 +ExecStart=/usr/bin/haveged -w 1024 -v 1
8 +PIDFile=/run/haveged.pid
9 +
10 +[Install]
11 +WantedBy=multi-user.target
0 12 new file mode 100644
@@ -0,0 +1,15 @@
1 +[Unit]
2 +Description=Apache Web Server
3 +After=network.target remote-fs.target nss-lookup.target
4 +
5 +[Service]
6 +Type=forking
7 +PIDFile=/run/httpd/httpd.pid
8 +ExecStart=/usr/bin/apachectl start
9 +ExecStop=/usr/bin/apachectl graceful-stop
10 +ExecReload=/usr/bin/apachectl graceful
11 +PrivateTmp=true
12 +LimitNOFILE=infinity
13 +
14 +[Install]
15 +WantedBy=multi-user.target
0 16 new file mode 100644
@@ -0,0 +1,13 @@
1 +[Unit]
2 +Description=Load Iptables Rules
3 +ConditionFileIsExecutable=/etc/systemd/scripts/iptables
4 +After=network.target
5 +
6 +[Service]
7 +Type=forking
8 +ExecStart=/etc/systemd/scripts/iptables
9 +TimeoutSec=0
10 +RemainAfterExit=yes
11 +
12 +[Install]
13 +WantedBy=multi-user.target
0 14 new file mode 100644
@@ -0,0 +1,9 @@
1 +[Unit]
2 +Description=K Display Manager
3 +After=systemd-user-sessions.service
4 +
5 +[Service]
6 +ExecStart=/usr/bin/kdm -nodaemon
7 +
8 +[Install]
9 +Alias=display-manager.service
0 10 new file mode 100644
@@ -0,0 +1,8 @@
1 +[Unit]
2 +Description=Kerberos 5 Administration Server
3 +
4 +[Service]
5 +ExecStart=/usr/bin/kadmind -nofork
6 +
7 +[Install]
8 +WantedBy=multi-user.target
0 9 new file mode 100644
@@ -0,0 +1,9 @@
1 +[Unit]
2 +Description=Kerberos 5 KDC
3 +
4 +[Service]
5 +ExecStart=/usr/bin/krb5kdc -n
6 +Restart=always
7 +
8 +[Install]
9 +WantedBy=multi-user.target
0 10 new file mode 100644
@@ -0,0 +1,8 @@
1 +[Unit]
2 +Description=Kerberos 5 Propagation Server
3 +
4 +[Service]
5 +ExecStart=/usr/bin/kpropd -S
6 +
7 +[Install]
8 +WantedBy=multi-user.target
0 9 new file mode 100644
@@ -0,0 +1,15 @@
1 +[Unit]
2 +Description=Light Display Manager
3 +Documentation=man:lightdm(1)
4 +Conflicts=getty@tty1.service
5 +After=getty@tty1.service systemd-user-sessions.service plymouth-quit.service acpid.service
6 +
7 +[Service]
8 +ExecStart=/usr/bin/lightdm
9 +Restart=always
10 +IgnoreSIGPIPE=no
11 +BusName=org.freedesktop.DisplayManager
12 +
13 +[Install]
14 +Alias=display-manager.service
15 +
0 16 new file mode 100644
@@ -0,0 +1,13 @@
1 +[Unit]
2 +Description=MySQL Server
3 +After=network.target
4 +
5 +[Service]
6 +User=mysql
7 +Group=mysql
8 +ExecStart=/usr/bin/mysqld --pid-file=/run/mysqld/mysqld.pid
9 +Restart=always
10 +PrivateTmp=true
11 +
12 +[Install]
13 +WantedBy=multi-user.target
0 14 new file mode 100644
@@ -0,0 +1,11 @@
1 +[Unit]
2 +Description=Internet domain name server
3 +After=network.target
4 +
5 +[Service]
6 +ExecStart=/usr/bin/named -f -u named -t /srv/named -c /etc/named.conf
7 +ExecReload=/usr/bin/rndc reload
8 +ExecStop=/usr/bin/rndc stop
9 +
10 +[Install]
11 +WantedBy=multi-user.target
0 12 new file mode 100644
@@ -0,0 +1,7 @@
1 +[Unit]
2 +Description=NFS server and client services
3 +
4 +[Service]
5 +Type=oneshot
6 +RemainAfterExit=yes
7 +ExecStart=/usr/bin/true
0 8 new file mode 100644
@@ -0,0 +1,8 @@
1 +[Unit]
2 +Description=NFS client services
3 +Before=remote-fs-pre.target
4 +Wants=remote-fs-pre.target rpc-statd-notify.service
5 +
6 +[Install]
7 +WantedBy=multi-user.target
8 +WantedBy=remote-fs.target
0 9 new file mode 100644
@@ -0,0 +1,20 @@
1 +[Unit]
2 +Description=NFS server and services
3 +Requires=network.target proc-fs-nfsd.mount rpcbind.target rpc-mountd.service
4 +Wants=rpc-idmapd.service rpc-statd.service rpc-statd-notify.service
5 +Before=rpc-statd-notify.service
6 +After=network.target proc-fs-nfsd.mount rpcbind.target rpc-idmapd.service rpc-statd.service
7 +
8 +[Service]
9 +Type=oneshot
10 +RemainAfterExit=yes
11 +EnvironmentFile=/etc/default/nfs-utils
12 +ExecStartPre=/usr/bin/exportfs -r
13 +ExecStart=/usr/bin/rpc.nfsd $NFSD_OPTS
14 +ExecStop=/usr/bin/rpc.nfsd 0
15 +ExecStopPost=/usr/bin/exportfs -au
16 +ExecStopPost=/usr/bin/exportfs -f
17 +ExecReload=/usr/bin/exportfs -r
18 +
19 +[Install]
20 +WantedBy=multi-user.target
0 21 new file mode 100644
@@ -0,0 +1,7 @@
1 +[Unit]
2 +Description=NFS File Server Daemons
3 +Wants=rpc-mountd.service
4 +Wants=rpc-statd.service
5 +
6 +[Install]
7 +WantedBy=multi-user.target
0 8 new file mode 100644
@@ -0,0 +1,20 @@
1 +[Unit]
2 +Description=NFS Server Daemon
3 +Documentation=man:rpc.nfsd(8)
4 +After=rpcbind.service
5 +Requires=rpcbind.service
6 +Before=nfs-server.target
7 +PartOf=nfs-server.target
8 +
9 +[Service]
10 +Type=oneshot
11 +EnvironmentFile=/etc/default/nfs-utils
12 +ExecStart=/usr/bin/rpc.nfsd $NFSD_OPTS $NFSD_COUNT
13 +ExecStartPost=/usr/bin/exportfs -a
14 +ExecReload=/usr/bin/exportfs -a -r
15 +ExecStop=/usr/bin/rpc.nfsd 0
16 +ExecStopPost=/usr/bin/exportfs -a -u
17 +RemainAfterExit=yes
18 +
19 +[Install]
20 +WantedBy=multi-user.target
0 21 new file mode 100644
@@ -0,0 +1,16 @@
1 +[Unit]
2 +Description=A high performance web server and a reverse proxy server
3 +After=network.target network-online.target nss-lookup.target
4 +
5 +[Service]
6 +Type=forking
7 +PIDFile=/run/nginx.pid
8 +PrivateDevices=yes
9 +SyslogLevel=err
10 +
11 +ExecStart=/usr/bin/nginx -g 'pid /run/nginx.pid; error_log stderr;'
12 +ExecReload=/usr/bin/nginx -s reload
13 +KillMode=mixed
14 +
15 +[Install]
16 +WantedBy=multi-user.target
0 17 new file mode 100644
@@ -0,0 +1,13 @@
1 +[Unit]
2 +Description=Samba NetBIOS name server
3 +After=network.target
4 +
5 +[Service]
6 +Type=forking
7 +EnvironmentFile=/etc/default/samba
8 +PIDFile=/run/samba/nmbd.pid
9 +ExecStart=/usr/bin/nmbd -D $NMBD_OPTS
10 +ExecReload=/usr/bin/kill -HUP $MAINPID
11 +
12 +[Install]
13 +WantedBy=multi-user.target
0 14 new file mode 100644
@@ -0,0 +1,16 @@
1 +[Unit]
2 +Description=Name Service Cache Daemon
3 +
4 +[Service]
5 +Type=forking
6 +ExecStart=/usr/bin/nscd
7 +ExecStop=/usr/bin/nscd --shutdown
8 +ExecReload=/usr/bin/nscd -i passwd
9 +ExecReload=/usr/bin/nscd -i group
10 +ExecReload=/usr/bin/nscd -i hosts
11 +ExecReload=/usr/bin/nscd -i services
12 +Restart=always
13 +PIDFile=/run/nscd/nscd.pid
14 +
15 +[Install]
16 +WantedBy=multi-user.target
0 17 new file mode 100644
@@ -0,0 +1,12 @@
1 +[Unit]
2 +Description=Network Time Protocol daemon
3 +After=network.target nss-lookup.target
4 +Conflicts=systemd-timesyncd.service
5 +
6 +[Service]
7 +Type=forking
8 +PrivateTmp=true
9 +ExecStart=/usr/bin/ntpd -g -u ntp:ntp
10 +
11 +[Install]
12 +WantedBy=multi-user.target
0 13 new file mode 100644
@@ -0,0 +1,13 @@
1 +[Unit]
2 +Description=The PHP FastCGI Process Manager
3 +After=network.target
4 +
5 +[Service]
6 +Type=notify
7 +PIDFile=/run/php-fpm.pid
8 +PrivateTmp=true
9 +ExecStart=/usr/bin/php-fpm --nodaemonize --fpm-config /etc/php-fpm.conf --pid /run/php-fpm.pid
10 +ExecReload=/usr/bin/kill -USR2 $MAINPID
11 +
12 +[Install]
13 +WantedBy=multi-user.target
0 14 new file mode 100644
@@ -0,0 +1,14 @@
1 +[Unit]
2 +Description=Postfix Mail Transport Agent
3 +After=network.target
4 +
5 +[Service]
6 +Type=forking
7 +PIDFile=/var/spool/postfix/pid/master.pid
8 +ExecStart=/usr/bin/postfix start
9 +ExecStop=/usr/bin/postfix stop
10 +ExecReload=/usr/bin/postfix reload
11 +Restart=always
12 +
13 +[Install]
14 +WantedBy=multi-user.target
0 15 new file mode 100644
@@ -0,0 +1,25 @@
1 +[Unit]
2 +Description=PostgreSQL database server
3 +After=network.target
4 +
5 +[Service]
6 +Type=forking
7 +TimeoutSec=120
8 +User=postgres
9 +Group=postgres
10 +
11 +Environment=PGROOT=/srv/pgsql
12 +
13 +SyslogIdentifier=postgres
14 +PIDFile=/srv/pgsql/data/postmaster.pid
15 +
16 +ExecStart= /usr/bin/pg_ctl -s -D ${PGROOT}/data start -w -t 120
17 +ExecReload=/usr/bin/pg_ctl -s -D ${PGROOT}/data reload
18 +ExecStop= /usr/bin/pg_ctl -s -D ${PGROOT}/data stop -m fast
19 +
20 +# Due to PostgreSQL's use of shared memory, OOM killer is often overzealous in
21 +# killing Postgres, so adjust it downward
22 +OOMScoreAdjust=-200
23 +
24 +[Install]
25 +WantedBy=multi-user.target
0 26 new file mode 100644
@@ -0,0 +1,7 @@
1 +[Unit]
2 +Description=NFSD configuration filesystem
3 +
4 +[Mount]
5 +What=nfsd
6 +Where=/proc/fs/nfsd
7 +Type=nfsd
0 8 new file mode 100644
@@ -0,0 +1,11 @@
1 +[Unit]
2 +Description=ProFTPD FTP Server
3 +After=network.target
4 +
5 +[Service]
6 +Type=forking
7 +ExecStart=/usr/bin/proftpd
8 +ExecReload=/usr/bin/kill -HUP $MAINPID
9 +
10 +[Install]
11 +WantedBy=multi-user.target
0 12 new file mode 100644
@@ -0,0 +1,10 @@
1 +[Unit]
2 +Description=NFSv4 ID-name mapping service
3 +Requires=var-lib-nfs-rpc_pipefs.mount
4 +After=var-lib-nfs-rpc_pipefs.mount
5 +BindsTo=nfs-server.service
6 +
7 +[Service]
8 +Type=forking
9 +EnvironmentFile=/etc/default/nfs-utils
10 +ExecStart=/usr/bin/rpc.idmapd $IDMAPD_OPTS
0 11 new file mode 100644
@@ -0,0 +1,10 @@
1 +[Unit]
2 +Description=NFS Mount Daemon
3 +Requires=proc-fs-nfsd.mount
4 +After=proc-fs-nfsd.mount network.target
5 +BindsTo=nfs-server.service
6 +
7 +[Service]
8 +Type=forking
9 +EnvironmentFile=/etc/default/nfs-utils
10 +ExecStart=/usr/bin/rpc.mountd $MOUNTD_OPTS
0 11 new file mode 100644
@@ -0,0 +1,10 @@
1 +[Unit]
2 +Description=Notify NFS peers of a restart
3 +Requires=network-online.target
4 +After=network-online.target nss-lookup.target nfs-server.service
5 +PartOf=nfs-client.service
6 +
7 +[Service]
8 +Type=forking
9 +EnvironmentFile=/etc/default/nfs-utils
10 +ExecStart=/usr/bin/sm-notify $SM_NOTIFY_OPTS
0 11 new file mode 100644
@@ -0,0 +1,13 @@
1 +[Unit]
2 +Description=NFS status monitor for NFSv2/3 locking.
3 +DefaultDependencies=no
4 +Conflicts=umount.target
5 +Requires=nss-lookup.target rpcbind.target
6 +After=network.target nss-lookup.target rpcbind.target
7 +PartOf=nfs-client.service
8 +
9 +[Service]
10 +Type=forking
11 +EnvironmentFile=/etc/default/nfs-utils
12 +PIDFile=/var/run/rpc.statd.pid
13 +ExecStart=/usr/bin/rpc.statd --no-notify $STATD_OPTS
0 14 new file mode 100644
@@ -0,0 +1,10 @@
1 +[Unit]
2 +Description=RPC Bind Service
3 +Requires=rpcbind.socket
4 +
5 +[Service]
6 +Type=forking
7 +ExecStart=/usr/bin/rpcbind -w
8 +
9 +[Install]
10 +Also=rpcbind.socket
0 11 new file mode 100644
@@ -0,0 +1,8 @@
1 +[Unit]
2 +Description=RPC Bind Server Activation Socket
3 +
4 +[Socket]
5 +ListenStream=/var/run/rpcbind.sock
6 +
7 +[Install]
8 +WantedBy=sockets.target
0 9 new file mode 100644
@@ -0,0 +1,10 @@
1 +[Unit]
2 +Description=A file transfer program to keep remote files in sync
3 +ConditionPathExists=/etc/rsyncd.conf
4 +
5 +[Service]
6 +ExecStart=/usr/bin/rsync --daemon --no-detach
7 +RestartSec=1
8 +
9 +[Install]
10 +WantedBy=multi-user.target
0 11 new file mode 100644
@@ -0,0 +1,10 @@
1 +[Unit]
2 +Description=Rsync Socket
3 +Conflicts=rsyncd.service
4 +
5 +[Socket]
6 +ListenStream=873
7 +Accept=true
8 +
9 +[Install]
10 +WantedBy=sockets.target
0 11 new file mode 100644
@@ -0,0 +1,7 @@
1 +[Unit]
2 +Description=A file transfer program to keep remote files in sync
3 +ConditionPathExists=/etc/rsyncd.conf
4 +
5 +[Service]
6 +ExecStart=/usr/bin/rsync --daemon --no-detach
7 +StandardInput=socket
0 8 new file mode 100644
@@ -0,0 +1,14 @@
1 +[Unit]
2 +Description=Samba AD Daemon
3 +After=network.target
4 +
5 +[Service]
6 +Type=forking
7 +EnvironmentFile=/etc/defaults/samba
8 +PIDFile=/var/run/samba.pid
9 +ExecStart=/usr/bin/samba $SAMBA_OPTS
10 +ExecReload=/usr/bin/kill -HUP $MAINPID
11 +
12 +[Install]
13 +WantedBy=multi-user.target
14 +
0 15 new file mode 100644
@@ -0,0 +1,11 @@
1 +[Unit]
2 +Description=Cyrus SASL authentication daemon
3 +
4 +[Service]
5 +Type=forking
6 +EnvironmentFile=/etc/default/saslauthd
7 +ExecStart=/usr/bin/saslauthd -a $MECHANISMS -n $THREADS $MECH_OPTIONS $SASLAUTHD_OPTS
8 +PIDFile=/run/saslauthd/saslauthd.pid
9 +
10 +[Install]
11 +WantedBy=multi-user.target
0 12 new file mode 100644
@@ -0,0 +1,15 @@
1 +[Unit]
2 +Description=Sendmail Mail Transport Agent
3 +After=network.target
4 +Conflicts=postfix.service exim.service
5 +Wants=sm-client.service
6 +
7 +[Service]
8 +Type=forking
9 +PIDFile=/run/sendmail.pid
10 +EnvironmentFile=/etc/default/sendmail
11 +ExecStart=/usr/bin/sendmail -bd $SENDMAIL_OPTS $SENDMAIL_OPTARG
12 +
13 +[Install]
14 +WantedBy=multi-user.target
15 +Also=sm-client.service
0 16 new file mode 100755
@@ -0,0 +1,25 @@
1 +# SPDX-License-Identifier: LGPL-2.1+
2 +#
3 +# systemd is free software; you can redistribute it and/or modify it
4 +# under the terms of the GNU Lesser General Public License as published by
5 +# the Free Software Foundation; either version 2.1 of the License, or
6 +# (at your option) any later version.
7 +
8 +[Unit]
9 +Description=Configuration Pagan
10 +DefaultDependencies=no
11 +After=systemd-tmpfiles-setup.service
12 +Before=sysinit.target shutdown.target
13 +
14 +
15 +[Service]
16 +Type=oneshot
17 +Environment=HOME=/root
18 +WorkingDirectory=-/root
19 +ExecStart=-/sbin/setup-pagan start
20 +StandardInput=tty-force
21 +StandardOutput=inherit
22 +StandardError=inherit
23 +KillMode=process
24 +IgnoreSIGPIPE=no
25 +SendSIGHUP=yes
0 26 new file mode 100644
@@ -0,0 +1,11 @@
1 +[Unit]
2 +Description=OpenLDAP server daemon
3 +After=network.target
4 +
5 +[Service]
6 +Type=forking
7 +EnvironmentFile=/etc/default/slapd
8 +ExecStart=/usr/bin/slapd -u ldap -g ldap $SLAPD_OPTS
9 +
10 +[Install]
11 +WantedBy=multi-user.target
0 12 new file mode 100644
@@ -0,0 +1,15 @@
1 +[Unit]
2 +Description=Sendmail Mail Transport Client
3 +After=network.target sendmail.service
4 +Conflicts=postfix.service exim.service
5 +BindTo=sendmail.service
6 +
7 +[Service]
8 +Type=forking
9 +PIDFile=/var/spool/clientmqueue/sm-client.pid
10 +EnvironmentFile=/etc/default/sendmail
11 +ExecStartPre=/usr/bin/rm -f /var/spool/mqueue/xf*
12 +ExecStart=/usr/bin/sendmail -L sm-msp-queue -Ac $SENDMAIL_OPTS $SENDMAIL_OPTARG
13 +
14 +[Install]
15 +WantedBy=multi-user.target
0 16 new file mode 100644
@@ -0,0 +1,13 @@
1 +[Unit]
2 +Description=Samba SMB/CIFS server
3 +After=network.target nmbd.service winbindd.service
4 +
5 +[Service]
6 +Type=forking
7 +EnvironmentFile=/etc/default/samba
8 +PIDFile=/run/samba/smbd.pid
9 +ExecStart=/usr/bin/smbd -D $SMBD_OPTS
10 +ExecReload=/usr/bin/kill -HUP $MAINPID
11 +
12 +[Install]
13 +WantedBy=multi-user.target
0 14 new file mode 100644
@@ -0,0 +1,9 @@
1 +[Unit]
2 +Description=Samba SMB/CIFS server socket
3 +
4 +[Socket]
5 +ListenStream=445
6 +Accept=yes
7 +
8 +[Install]
9 +WantedBy=sockets.target
0 10 new file mode 100644
@@ -0,0 +1,10 @@
1 +[Unit]
2 +Description=Samba SMB/CIFS server instance
3 +
4 +[Service]
5 +Type=forking
6 +EnvironmentFile=/etc/default/samba
7 +PIDFile=/run/samba/smbd.pid
8 +ExecStart=/usr/bin/smbd -F $SMBD_OPTS
9 +ExecReload=/usr/bin/kill -HUP $MAINPID
10 +StandardInput=socket
0 11 new file mode 100644
@@ -0,0 +1,14 @@
1 +[Unit]
2 +Description=OpenSSH Daemon
3 +Wants=sshdgenkeys.service
4 +After=sshdgenkeys.service
5 +After=network.target
6 +
7 +[Service]
8 +ExecStart=/usr/bin/sshd -D
9 +ExecReload=/usr/bin/kill -HUP $MAINPID
10 +KillMode=process
11 +Restart=always
12 +
13 +[Install]
14 +WantedBy=multi-user.target
0 15 new file mode 100644
@@ -0,0 +1,10 @@
1 +[Unit]
2 +Conflicts=sshd.service
3 +Wants=sshdgenkeys.service
4 +
5 +[Socket]
6 +ListenStream=22
7 +Accept=yes
8 +
9 +[Install]
10 +WantedBy=sockets.target
0 11 new file mode 100644
@@ -0,0 +1,9 @@
1 +[Unit]
2 +Description=SSH Per-Connection Server
3 +After=sshdgenkeys.service
4 +
5 +[Service]
6 +ExecStart=/usr/bin/sshd -i
7 +StandardInput=socket
8 +StandardError=syslog
9 +KillMode=process
0 10 new file mode 100644
@@ -0,0 +1,15 @@
1 +[Unit]
2 +Description=SSH Key Generation
3 +ConditionPathExists=|!/etc/ssh/ssh_host_dsa_key
4 +ConditionPathExists=|!/etc/ssh/ssh_host_dsa_key.pub
5 +ConditionPathExists=|!/etc/ssh/ssh_host_ecdsa_key
6 +ConditionPathExists=|!/etc/ssh/ssh_host_ecdsa_key.pub
7 +ConditionPathExists=|!/etc/ssh/ssh_host_ed25519_key
8 +ConditionPathExists=|!/etc/ssh/ssh_host_ed25519_key.pub
9 +ConditionPathExists=|!/etc/ssh/ssh_host_rsa_key
10 +ConditionPathExists=|!/etc/ssh/ssh_host_rsa_key.pub
11 +
12 +[Service]
13 +ExecStart=/usr/bin/ssh-keygen -A
14 +Type=oneshot
15 +RemainAfterExit=yes
0 16 new file mode 100644
@@ -0,0 +1,11 @@
1 +[Unit]
2 +Description=Subversion protocol daemon
3 +After=network.target
4 +
5 +[Service]
6 +Type=forking
7 +EnvironmentFile=/etc/default/svnserve
8 +ExecStart=/usr/bin/svnserve --daemon --pid-file=/run/svnserve/svnserve.pid $SVNSERVE_OPTS
9 +
10 +[Install]
11 +WantedBy=multi-user.target
0 12 new file mode 100644
@@ -0,0 +1,12 @@
1 +[Unit]
2 +Description=Anonymizing Overlay Network
3 +After=network.target
4 +
5 +[Service]
6 +Type=forking
7 +ExecStart=/usr/bin/tor
8 +ExecReload=/usr/bin/kill -HUP $MAINPID
9 +KillSignal=SIGINT
10 +
11 +[Install]
12 +WantedBy=multi-user.target
0 13 new file mode 100644
@@ -0,0 +1,12 @@
1 +[Unit]
2 +Description=Unbound DNS Resolver
3 +After=network.target
4 +
5 +[Service]
6 +PIDFile=/run/unbound.pid
7 +ExecStart=/usr/bin/unbound -d
8 +ExecReload=/usr/bin/kill -HUP $MAINPID
9 +Restart=always
10 +
11 +[Install]
12 +WantedBy=multi-user.target
0 13 new file mode 100644
@@ -0,0 +1,9 @@
1 +[Unit]
2 +Description=RPC Pipe File System
3 +DefaultDependencies=no
4 +Conflicts=umount.target
5 +
6 +[Mount]
7 +What=sunrpc
8 +Where=/var/lib/nfs/rpc_pipefs
9 +Type=rpc_pipefs
0 10 new file mode 100644
@@ -0,0 +1,11 @@
1 +[Unit]
2 +Description=vsftpd ftp daemon
3 +After=network.target
4 +
5 +[Service]
6 +Type=forking
7 +ExecStart=/usr/bin/vsftpd
8 +ExecReload=/usr/bin/kill -HUP $MAINPID
9 +
10 +[Install]
11 +WantedBy=multi-user.target
0 12 new file mode 100644
@@ -0,0 +1,13 @@
1 +[Unit]
2 +Description=Samba Winbind daemon
3 +After=network.target nmbd.service
4 +
5 +[Service]
6 +Type=forking
7 +EnvironmentFile=/etc/default/samba
8 +PIDFile=/run/samba/winbindd.pid
9 +ExecStart=/usr/bin/winbindd -D $WINBINDD_OPTS
10 +ExecReload=/usr/bin/kill -HUP $MAINPID
11 +
12 +[Install]
13 +WantedBy=multi-user.target
0 14 new file mode 100644
@@ -0,0 +1,10 @@
1 +[Unit]
2 +Description=A secure replacement for inetd
3 +After=network.target
4 +
5 +[Service]
6 +ExecStart=/usr/bin/xinetd -dontfork
7 +ExecReload=/usr/bin/kill -HUP $MAINPID
8 +
9 +[Install]
10 +WantedBy=multi-user.target
0 11 new file mode 100644
@@ -0,0 +1,1207 @@
1 +SHELL=/bin/bash
2 +
3 +ETCDIR=/etc
4 +LIBDIR=${DESTDIR}/lib/services
5 +EXTDIR=${DESTDIR}${ETCDIR}
6 +MODE=754
7 +DIRMODE=755
8 +CONFMODE=644
9 +
10 +all:
11 + @grep "^install" Makefile | cut -d ":" -f 1
12 + @echo "Select an appropriate install target from the above list"
13 +
14 +create-dirs:
15 + install -d -m ${DIRMODE} ${EXTDIR}/rc.d/rc{0,1,2,3,4,5,6,S}.d
16 + install -d -m ${DIRMODE} ${EXTDIR}/rc.d/init.d
17 + install -d -m ${DIRMODE} ${EXTDIR}/sysconfig
18 +
19 +create-service-dir:
20 + install -d -m ${DIRMODE} ${LIBDIR}
21 +
22 +install-service-dhclient: create-service-dir
23 + install -m ${MODE} services/dhclient ${LIBDIR}
24 +
25 +install-service-dhcpcd: create-service-dir
26 + install -m ${MODE} services/dhcpcd ${LIBDIR}
27 +
28 +install-service-bridge: create-service-dir
29 + install -m ${MODE} services/bridge ${LIBDIR}
30 +
31 +install-service-ipx: create-service-dir
32 + install -m ${MODE} services/ipx ${LIBDIR}
33 +
34 +install-service-pppoe: create-service-dir
35 + install -m ${MODE} services/pppoe ${LIBDIR}
36 + install -d -m ${DIRMODE} ${EXTDIR}/ppp/peers
37 + install -m ${CONFMODE} ppp/pppoe ${EXTDIR}/ppp/peers
38 +
39 + install-service-wpa: create-service-dir
40 + install -m ${MODE} services/wpa ${LIBDIR}
41 +
42 +install-sysv-acpid: create-dirs
43 + install -m ${MODE} init.d/acpid ${EXTDIR}/rc.d/init.d/
44 + ln -sf ../init.d/acpid ${EXTDIR}/rc.d/rc0.d/K32acpid
45 + ln -sf ../init.d/acpid ${EXTDIR}/rc.d/rc1.d/K32acpid
46 + ln -sf ../init.d/acpid ${EXTDIR}/rc.d/rc2.d/S18acpid
47 + ln -sf ../init.d/acpid ${EXTDIR}/rc.d/rc3.d/S18acpid
48 + ln -sf ../init.d/acpid ${EXTDIR}/rc.d/rc4.d/S18acpid
49 + ln -sf ../init.d/acpid ${EXTDIR}/rc.d/rc5.d/S18acpid
50 + ln -sf ../init.d/acpid ${EXTDIR}/rc.d/rc6.d/K32acpid
51 +
52 +install-sysv-alsa: create-dirs
53 + install -m ${MODE} init.d/alsa ${EXTDIR}/rc.d/init.d/
54 + ln -sf ../init.d/alsa ${EXTDIR}/rc.d/rc0.d/K35alsa
55 + ln -sf ../init.d/alsa ${EXTDIR}/rc.d/rc1.d/K35alsa
56 + ln -sf ../init.d/alsa ${EXTDIR}/rc.d/rc6.d/K35alsa
57 + ln -sf ../init.d/alsa ${EXTDIR}/rc.d/rcS.d/S60alsa
58 +
59 +install-sysv-httpd: create-dirs
60 + install -m ${MODE} init.d/httpd ${EXTDIR}/rc.d/init.d/
61 + ln -sf ../init.d/httpd ${EXTDIR}/rc.d/rc0.d/K28httpd
62 + ln -sf ../init.d/httpd ${EXTDIR}/rc.d/rc1.d/K28httpd
63 + ln -sf ../init.d/httpd ${EXTDIR}/rc.d/rc2.d/K28httpd
64 + ln -sf ../init.d/httpd ${EXTDIR}/rc.d/rc3.d/S32httpd
65 + ln -sf ../init.d/httpd ${EXTDIR}/rc.d/rc4.d/S32httpd
66 + ln -sf ../init.d/httpd ${EXTDIR}/rc.d/rc5.d/S32httpd
67 + ln -sf ../init.d/httpd ${EXTDIR}/rc.d/rc6.d/K28httpd
68 +
69 +install-sysv-nginx: create-dirs
70 + install -m ${MODE} init.d/nginx ${EXTDIR}/rc.d/init.d/
71 + ln -sf ../init.d/nginx ${EXTDIR}/rc.d/rc0.d/K28nginx
72 + ln -sf ../init.d/nginx ${EXTDIR}/rc.d/rc1.d/K28nginx
73 + ln -sf ../init.d/nginx ${EXTDIR}/rc.d/rc2.d/K28nginx
74 + ln -sf ../init.d/nginx ${EXTDIR}/rc.d/rc3.d/S32nginx
75 + ln -sf ../init.d/nginx ${EXTDIR}/rc.d/rc4.d/S32nginx
76 + ln -sf ../init.d/nginx ${EXTDIR}/rc.d/rc5.d/S32nginx
77 + ln -sf ../init.d/nginx ${EXTDIR}/rc.d/rc6.d/K28nginx
78 +
79 +
80 +install-sysv-php: create-dirs
81 + install -m ${MODE} init.d/php-fpm ${EXTDIR}/rc.d/init.d/
82 + ln -sf ../init.d/php-fpm ${EXTDIR}/rc.d/rc0.d/K28php-fpm
83 + ln -sf ../init.d/php-fpm ${EXTDIR}/rc.d/rc1.d/K28php-fpm
84 + ln -sf ../init.d/php-fpm ${EXTDIR}/rc.d/rc2.d/K28php-fpm
85 + ln -sf ../init.d/php-fpm ${EXTDIR}/rc.d/rc3.d/S32php-fpm
86 + ln -sf ../init.d/php-fpm ${EXTDIR}/rc.d/rc4.d/S32php-fpm
87 + ln -sf ../init.d/php-fpm ${EXTDIR}/rc.d/rc5.d/S32php-fpm
88 + ln -sf ../init.d/php-fpm ${EXTDIR}/rc.d/rc6.d/K28php-fpm
89 +
90 +install-sysv-autofs: create-dirs
91 + install -m $(MODE) init.d/autofs $(EXTDIR)/rc.d/init.d/
92 + install -m $(CONFMODE) sysconfig/autofs.conf $(EXTDIR)/sysconfig/
93 + ln -sf ../init.d/autofs $(EXTDIR)/rc.d/rcS.d/S52autofs
94 +
95 +install-sysv-atd: create-dirs
96 + install -m ${MODE} init.d/atd ${EXTDIR}/rc.d/init.d/
97 + ln -sf ../init.d/atd ${EXTDIR}/rc.d/rc0.d/K29atd
98 + ln -sf ../init.d/atd ${EXTDIR}/rc.d/rc1.d/K29atd
99 + ln -sf ../init.d/atd ${EXTDIR}/rc.d/rc2.d/S68atd
100 + ln -sf ../init.d/atd ${EXTDIR}/rc.d/rc3.d/S68atd
101 + ln -sf ../init.d/atd ${EXTDIR}/rc.d/rc4.d/S68atd
102 + ln -sf ../init.d/atd ${EXTDIR}/rc.d/rc5.d/S68atd
103 + ln -sf ../init.d/atd ${EXTDIR}/rc.d/rc6.d/K29atd
104 +
105 +install-sysv-avahi: create-dirs
106 + install -m ${MODE} init.d/avahi ${EXTDIR}/rc.d/init.d/
107 + ln -sf ../init.d/avahi ${EXTDIR}/rc.d/rc0.d/K28avahi
108 + ln -sf ../init.d/avahi ${EXTDIR}/rc.d/rc1.d/K28avahi
109 + ln -sf ../init.d/avahi ${EXTDIR}/rc.d/rc2.d/S34avahi
110 + ln -sf ../init.d/avahi ${EXTDIR}/rc.d/rc3.d/S34avahi
111 + ln -sf ../init.d/avahi ${EXTDIR}/rc.d/rc4.d/S34avahi
112 + ln -sf ../init.d/avahi ${EXTDIR}/rc.d/rc5.d/S34avahi
113 + ln -sf ../init.d/avahi ${EXTDIR}/rc.d/rc6.d/K28avahi
114 +
115 +install-sysv-bind: create-dirs
116 + install -m ${MODE} init.d/bind ${EXTDIR}/rc.d/init.d/
117 + ln -sf ../init.d/bind ${EXTDIR}/rc.d/rc0.d/K49bind
118 + ln -sf ../init.d/bind ${EXTDIR}/rc.d/rc1.d/K49bind
119 + ln -sf ../init.d/bind ${EXTDIR}/rc.d/rc2.d/K49bind
120 + ln -sf ../init.d/bind ${EXTDIR}/rc.d/rc3.d/S22bind
121 + ln -sf ../init.d/bind ${EXTDIR}/rc.d/rc4.d/S22bind
122 + ln -sf ../init.d/bind ${EXTDIR}/rc.d/rc5.d/S22bind
123 + ln -sf ../init.d/bind ${EXTDIR}/rc.d/rc6.d/K49bind
124 +
125 +install-sysv-bluetooth: create-dirs
126 + install -m ${MODE} init.d/bluetooth ${EXTDIR}/rc.d/init.d/bluetooth
127 + install -m ${CONFMODE} sysconfig/bluetooth ${EXTDIR}/sysconfig/bluetooth
128 + ln -sf ../init.d/bluetooth ${EXTDIR}/rc.d/rc0.d/K27bluetooth
129 + ln -sf ../init.d/bluetooth ${EXTDIR}/rc.d/rc1.d/K27bluetooth
130 + ln -sf ../init.d/bluetooth ${EXTDIR}/rc.d/rc2.d/S35bluetooth
131 + ln -sf ../init.d/bluetooth ${EXTDIR}/rc.d/rc3.d/S35bluetooth
132 + ln -sf ../init.d/bluetooth ${EXTDIR}/rc.d/rc4.d/S35bluetooth
133 + ln -sf ../init.d/bluetooth ${EXTDIR}/rc.d/rc5.d/S35bluetooth
134 + ln -sf ../init.d/bluetooth ${EXTDIR}/rc.d/rc6.d/K27bluetooth
135 +
136 +install-sysv-cups: create-dirs
137 + install -m ${MODE} init.d/cups ${EXTDIR}/rc.d/init.d/
138 + rm -f ${EXTDIR}/rc.d/rc0.d/K36cups
139 + rm -f ${EXTDIR}/rc.d/rc2.d/K36cups
140 + rm -f ${EXTDIR}/rc.d/rc3.d/K36cups
141 + rm -f ${EXTDIR}/rc.d/rc5.d/K36cups
142 + rm -f ${EXTDIR}/rc.d/rc2.d/S81cups
143 + rm -f ${EXTDIR}/rc.d/rc3.d/S81cups
144 + rm -f ${EXTDIR}/rc.d/rc5.d/S81cups
145 + ln -sf ../init.d/cups ${EXTDIR}/rc.d/rc0.d/K00cups
146 + ln -sf ../init.d/cups ${EXTDIR}/rc.d/rc1.d/K00cups
147 + ln -sf ../init.d/cups ${EXTDIR}/rc.d/rc2.d/S25cups
148 + ln -sf ../init.d/cups ${EXTDIR}/rc.d/rc3.d/S25cups
149 + ln -sf ../init.d/cups ${EXTDIR}/rc.d/rc4.d/S25cups
150 + ln -sf ../init.d/cups ${EXTDIR}/rc.d/rc5.d/S25cups
151 + ln -sf ../init.d/cups ${EXTDIR}/rc.d/rc6.d/K00cups
152 +
153 +install-sysv-saslauthd: create-dirs
154 + install -m ${MODE} init.d/saslauthd ${EXTDIR}/rc.d/init.d/saslauthd
155 + install -m ${CONFMODE} sysconfig/saslauthd ${EXTDIR}/sysconfig/saslauthd
156 + ln -sf ../init.d/saslauthd ${EXTDIR}/rc.d/rc0.d/K49saslauthd
157 + ln -sf ../init.d/saslauthd ${EXTDIR}/rc.d/rc1.d/K49saslauthd
158 + ln -sf ../init.d/saslauthd ${EXTDIR}/rc.d/rc2.d/S24saslauthd
159 + ln -sf ../init.d/saslauthd ${EXTDIR}/rc.d/rc3.d/S24saslauthd
160 + ln -sf ../init.d/saslauthd ${EXTDIR}/rc.d/rc4.d/S24saslauthd
161 + ln -sf ../init.d/saslauthd ${EXTDIR}/rc.d/rc5.d/S24saslauthd
162 + ln -sf ../init.d/saslauthd ${EXTDIR}/rc.d/rc6.d/K49saslauthd
163 +
164 +install-sysv-dbus: create-dirs
165 + install -m ${MODE} init.d/dbus ${EXTDIR}/rc.d/init.d/
166 + ln -sf ../init.d/dbus ${EXTDIR}/rc.d/rc0.d/K85dbus
167 + ln -sf ../init.d/dbus ${EXTDIR}/rc.d/rc1.d/K85dbus
168 + ln -sf ../init.d/dbus ${EXTDIR}/rc.d/rc2.d/S15dbus
169 + ln -sf ../init.d/dbus ${EXTDIR}/rc.d/rc3.d/S15dbus
170 + ln -sf ../init.d/dbus ${EXTDIR}/rc.d/rc4.d/S15dbus
171 + ln -sf ../init.d/dbus ${EXTDIR}/rc.d/rc5.d/S15dbus
172 + ln -sf ../init.d/dbus ${EXTDIR}/rc.d/rc6.d/K85dbus
173 +
174 +install-sysv-dovecot: create-dirs
175 + install -m ${MODE} init.d/dovecot ${EXTDIR}/rc.d/init.d/
176 + ln -sf ../init.d/dovecot ${EXTDIR}/rc.d/rc0.d/K78dovecot
177 + ln -sf ../init.d/dovecot ${EXTDIR}/rc.d/rc1.d/K78dovecot
178 + ln -sf ../init.d/dovecot ${EXTDIR}/rc.d/rc2.d/K78dovecot
179 + ln -sf ../init.d/dovecot ${EXTDIR}/rc.d/rc3.d/S27dovecot
180 + ln -sf ../init.d/dovecot ${EXTDIR}/rc.d/rc4.d/S27dovecot
181 + ln -sf ../init.d/dovecot ${EXTDIR}/rc.d/rc5.d/S27dovecot
182 + ln -sf ../init.d/dovecot ${EXTDIR}/rc.d/rc6.d/K78dovecot
183 +
184 +install-sysv-wicd: create-dirs
185 + install -m ${MODE} init.d/wicd ${EXTDIR}/rc.d/init.d/
186 + ln -sf ../init.d/wicd ${EXTDIR}/rc.d/rc0.d/K20wicd
187 + ln -sf ../init.d/wicd ${EXTDIR}/rc.d/rc1.d/K20wicd
188 + ln -sf ../init.d/wicd ${EXTDIR}/rc.d/rc2.d/S30wicd
189 + ln -sf ../init.d/wicd ${EXTDIR}/rc.d/rc3.d/S30wicd
190 + ln -sf ../init.d/wicd ${EXTDIR}/rc.d/rc4.d/S30wicd
191 + ln -sf ../init.d/wicd ${EXTDIR}/rc.d/rc5.d/S30wicd
192 + ln -sf ../init.d/wicd ${EXTDIR}/rc.d/rc6.d/K20wicd
193 +
194 +install-sysv-dhcpd: create-dirs
195 + install -m ${MODE} init.d/dhcpd ${EXTDIR}/rc.d/init.d/dhcpd
196 + install -m ${CONFMODE} sysconfig/dhcpd ${EXTDIR}/sysconfig/dhcpd
197 + ln -sf ../init.d/dhcpd ${EXTDIR}/rc.d/rc0.d/K30dhcpd
198 + ln -sf ../init.d/dhcpd ${EXTDIR}/rc.d/rc1.d/K30dhcpd
199 + ln -sf ../init.d/dhcpd ${EXTDIR}/rc.d/rc2.d/K30dhcpd
200 + ln -sf ../init.d/dhcpd ${EXTDIR}/rc.d/rc3.d/S30dhcpd
201 + ln -sf ../init.d/dhcpd ${EXTDIR}/rc.d/rc4.d/S30dhcpd
202 + ln -sf ../init.d/dhcpd ${EXTDIR}/rc.d/rc5.d/S30dhcpd
203 + ln -sf ../init.d/dhcpd ${EXTDIR}/rc.d/rc6.d/K30dhcpd
204 +
205 +install-sysv-exim: create-dirs
206 + install -m ${MODE} init.d/exim ${EXTDIR}/rc.d/init.d/
207 + ln -sf ../init.d/exim ${EXTDIR}/rc.d/rc0.d/K25exim
208 + ln -sf ../init.d/exim ${EXTDIR}/rc.d/rc1.d/K25exim
209 + ln -sf ../init.d/exim ${EXTDIR}/rc.d/rc2.d/K25exim
210 + ln -sf ../init.d/exim ${EXTDIR}/rc.d/rc3.d/S35exim
211 + ln -sf ../init.d/exim ${EXTDIR}/rc.d/rc4.d/S35exim
212 + ln -sf ../init.d/exim ${EXTDIR}/rc.d/rc5.d/S35exim
213 + ln -sf ../init.d/exim ${EXTDIR}/rc.d/rc6.d/K25exim
214 +
215 +install-sysv-fcron: create-dirs
216 + install -m ${MODE} init.d/fcron ${EXTDIR}/rc.d/init.d/
217 + ln -sf ../init.d/fcron ${EXTDIR}/rc.d/rc0.d/K08fcron
218 + ln -sf ../init.d/fcron ${EXTDIR}/rc.d/rc1.d/K08fcron
219 + ln -sf ../init.d/fcron ${EXTDIR}/rc.d/rc2.d/S40fcron
220 + ln -sf ../init.d/fcron ${EXTDIR}/rc.d/rc3.d/S40fcron
221 + ln -sf ../init.d/fcron ${EXTDIR}/rc.d/rc4.d/S40fcron
222 + ln -sf ../init.d/fcron ${EXTDIR}/rc.d/rc5.d/S40fcron
223 + ln -sf ../init.d/fcron ${EXTDIR}/rc.d/rc6.d/K08fcron
224 +
225 +install-sysv-gdm: create-dirs
226 + install -m ${MODE} init.d/gdm ${EXTDIR}/rc.d/init.d/
227 + ln -sf ../init.d/gdm ${EXTDIR}/rc.d/rc0.d/K05gdm
228 + ln -sf ../init.d/gdm ${EXTDIR}/rc.d/rc1.d/K05gdm
229 + ln -sf ../init.d/gdm ${EXTDIR}/rc.d/rc2.d/K05gdm
230 + ln -sf ../init.d/gdm ${EXTDIR}/rc.d/rc3.d/K05gdm
231 + ln -sf ../init.d/gdm ${EXTDIR}/rc.d/rc4.d/K05gdm
232 + ln -sf ../init.d/gdm ${EXTDIR}/rc.d/rc5.d/S95gdm
233 + ln -sf ../init.d/gdm ${EXTDIR}/rc.d/rc6.d/K05gdm
234 +
235 +install-sysv-gpm: create-dirs
236 + install -m ${MODE} init.d/gpm ${EXTDIR}/rc.d/init.d/
237 + ln -sf ../init.d/gpm ${EXTDIR}/rc.d/rc0.d/K10gpm
238 + ln -sf ../init.d/gpm ${EXTDIR}/rc.d/rc1.d/K10gpm
239 + ln -sf ../init.d/gpm ${EXTDIR}/rc.d/rc2.d/S70gpm
240 + ln -sf ../init.d/gpm ${EXTDIR}/rc.d/rc3.d/S70gpm
241 + ln -sf ../init.d/gpm ${EXTDIR}/rc.d/rc4.d/S70gpm
242 + ln -sf ../init.d/gpm ${EXTDIR}/rc.d/rc5.d/S70gpm
243 + ln -sf ../init.d/gpm ${EXTDIR}/rc.d/rc6.d/K10gpm
244 +
245 +install-sysv-haveged: create-dirs
246 + install -m ${MODE} init.d/haveged ${EXTDIR}/rc.d/init.d/
247 + ln -sf ../init.d/haveged ${EXTDIR}/rc.d/rc0.d/K90haveged
248 + ln -sf ../init.d/haveged ${EXTDIR}/rc.d/rc1.d/K90haveged
249 + ln -sf ../init.d/haveged ${EXTDIR}/rc.d/rc2.d/K90haveged
250 + ln -sf ../init.d/haveged ${EXTDIR}/rc.d/rc3.d/S21haveged
251 + ln -sf ../init.d/haveged ${EXTDIR}/rc.d/rc4.d/S21haveged
252 + ln -sf ../init.d/haveged ${EXTDIR}/rc.d/rc5.d/S21haveged
253 + ln -sf ../init.d/haveged ${EXTDIR}/rc.d/rc6.d/K90haveged
254 +
255 +install-sysv-heimdal: create-dirs
256 + install -m ${MODE} init.d/heimdal ${EXTDIR}/rc.d/init.d/
257 + ln -sf ../init.d/heimdal ${EXTDIR}/rc.d/rc0.d/K42heimdal
258 + ln -sf ../init.d/heimdal ${EXTDIR}/rc.d/rc1.d/K42heimdal
259 + ln -sf ../init.d/heimdal ${EXTDIR}/rc.d/rc2.d/K42heimdal
260 + ln -sf ../init.d/heimdal ${EXTDIR}/rc.d/rc3.d/S28heimdal
261 + ln -sf ../init.d/heimdal ${EXTDIR}/rc.d/rc4.d/S28heimdal
262 + ln -sf ../init.d/heimdal ${EXTDIR}/rc.d/rc5.d/S28heimdal
263 + ln -sf ../init.d/heimdal ${EXTDIR}/rc.d/rc6.d/K42heimdal
264 +
265 +install-sysv-iptables: create-dirs
266 + install -m ${MODE} init.d/iptables ${EXTDIR}/rc.d/init.d/
267 + ln -sf ../init.d/iptables ${EXTDIR}/rc.d/rc3.d/S19iptables
268 + ln -sf ../init.d/iptables ${EXTDIR}/rc.d/rc4.d/S19iptables
269 + ln -sf ../init.d/iptables ${EXTDIR}/rc.d/rc5.d/S19iptables
270 +
271 +install-sysv-krb5: create-dirs
272 + install -m ${MODE} init.d/krb5 ${EXTDIR}/rc.d/init.d/
273 + ln -sf ../init.d/krb5 ${EXTDIR}/rc.d/rc0.d/K42krb5
274 + ln -sf ../init.d/krb5 ${EXTDIR}/rc.d/rc1.d/K42krb5
275 + ln -sf ../init.d/krb5 ${EXTDIR}/rc.d/rc2.d/K42krb5
276 + ln -sf ../init.d/krb5 ${EXTDIR}/rc.d/rc3.d/S28krb5
277 + ln -sf ../init.d/krb5 ${EXTDIR}/rc.d/rc4.d/S28krb5
278 + ln -sf ../init.d/krb5 ${EXTDIR}/rc.d/rc5.d/S28krb5
279 + ln -sf ../init.d/krb5 ${EXTDIR}/rc.d/rc6.d/K42krb5
280 +
281 +install-sysv-lprng: create-dirs
282 + install -m ${MODE} init.d/lprng ${EXTDIR}/rc.d/init.d/
283 + ln -sf ../init.d/lprng ${EXTDIR}/rc.d/rc0.d/K00lprng
284 + ln -sf ../init.d/lprng ${EXTDIR}/rc.d/rc1.d/K00lprng
285 + ln -sf ../init.d/lprng ${EXTDIR}/rc.d/rc2.d/S99lprng
286 + ln -sf ../init.d/lprng ${EXTDIR}/rc.d/rc3.d/S99lprng
287 + ln -sf ../init.d/lprng ${EXTDIR}/rc.d/rc4.d/S99lprng
288 + ln -sf ../init.d/lprng ${EXTDIR}/rc.d/rc5.d/S99lprng
289 + ln -sf ../init.d/lprng ${EXTDIR}/rc.d/rc6.d/K00lprng
290 +
291 +install-sysv-lxdm: create-dirs
292 + install -m ${MODE} init.d/lxdm ${EXTDIR}/rc.d/init.d/
293 + ln -sf ../init.d/lxdm ${EXTDIR}/rc.d/rc0.d/K05lxdm
294 + ln -sf ../init.d/lxdm ${EXTDIR}/rc.d/rc1.d/K05lxdm
295 + ln -sf ../init.d/lxdm ${EXTDIR}/rc.d/rc2.d/K05lxdm
296 + ln -sf ../init.d/lxdm ${EXTDIR}/rc.d/rc3.d/K05lxdm
297 + ln -sf ../init.d/lxdm ${EXTDIR}/rc.d/rc4.d/K05lxdm
298 + ln -sf ../init.d/lxdm ${EXTDIR}/rc.d/rc5.d/S95lxdm
299 + ln -sf ../init.d/lxdm ${EXTDIR}/rc.d/rc6.d/K05lxdm
300 +
301 +install-sysv-mysql: create-dirs
302 + install -m ${MODE} init.d/mysql ${EXTDIR}/rc.d/init.d/
303 + ln -sf ../init.d/mysql ${EXTDIR}/rc.d/rc0.d/K26mysql
304 + ln -sf ../init.d/mysql ${EXTDIR}/rc.d/rc1.d/K26mysql
305 + ln -sf ../init.d/mysql ${EXTDIR}/rc.d/rc2.d/K26mysql
306 + ln -sf ../init.d/mysql ${EXTDIR}/rc.d/rc3.d/S34mysql
307 + ln -sf ../init.d/mysql ${EXTDIR}/rc.d/rc4.d/S34mysql
308 + ln -sf ../init.d/mysql ${EXTDIR}/rc.d/rc5.d/S34mysql
309 + ln -sf ../init.d/mysql ${EXTDIR}/rc.d/rc6.d/K26mysql
310 +
311 +install-sysv-netfs: create-dirs
312 + install -m ${MODE} init.d/netfs ${EXTDIR}/rc.d/init.d/
313 + ln -sf ../init.d/netfs ${EXTDIR}/rc.d/rc0.d/K47netfs
314 + ln -sf ../init.d/netfs ${EXTDIR}/rc.d/rc1.d/K47netfs
315 + ln -sf ../init.d/netfs ${EXTDIR}/rc.d/rc2.d/K47netfs
316 + ln -sf ../init.d/netfs ${EXTDIR}/rc.d/rc3.d/S28netfs
317 + ln -sf ../init.d/netfs ${EXTDIR}/rc.d/rc4.d/S28netfs
318 + ln -sf ../init.d/netfs ${EXTDIR}/rc.d/rc5.d/S28netfs
319 + ln -sf ../init.d/netfs ${EXTDIR}/rc.d/rc6.d/K47netfs
320 +
321 +install-sysv-networkmanager: create-dirs
322 + install -m ${MODE} init.d/networkmanager ${EXTDIR}/rc.d/init.d/networkmanager
323 + ln -sf ../init.d/networkmanager ${EXTDIR}/rc.d/rc0.d/K28networkmanager
324 + ln -sf ../init.d/networkmanager ${EXTDIR}/rc.d/rc1.d/K28networkmanager
325 + ln -sf ../init.d/networkmanager ${EXTDIR}/rc.d/rc2.d/S33networkmanager
326 + ln -sf ../init.d/networkmanager ${EXTDIR}/rc.d/rc3.d/S33networkmanager
327 + ln -sf ../init.d/networkmanager ${EXTDIR}/rc.d/rc4.d/S33networkmanager
328 + ln -sf ../init.d/networkmanager ${EXTDIR}/rc.d/rc5.d/S33networkmanager
329 + ln -sf ../init.d/networkmanager ${EXTDIR}/rc.d/rc6.d/K28networkmanager
330 +
331 +install-sysv-nfs-client: create-dirs
332 + install -m ${MODE} init.d/nfs-client ${EXTDIR}/rc.d/init.d/
333 + ln -sf ../init.d/nfs-client ${EXTDIR}/rc.d/rc0.d/K48nfs-client
334 + ln -sf ../init.d/nfs-client ${EXTDIR}/rc.d/rc1.d/K48nfs-client
335 + ln -sf ../init.d/nfs-client ${EXTDIR}/rc.d/rc2.d/K48nfs-client
336 + ln -sf ../init.d/nfs-client ${EXTDIR}/rc.d/rc3.d/S24nfs-client
337 + ln -sf ../init.d/nfs-client ${EXTDIR}/rc.d/rc4.d/S24nfs-client
338 + ln -sf ../init.d/nfs-client ${EXTDIR}/rc.d/rc5.d/S24nfs-client
339 + ln -sf ../init.d/nfs-client ${EXTDIR}/rc.d/rc6.d/K48nfs-client
340 +
341 +install-sysv-nfs-server: create-dirs
342 + install -m ${MODE} init.d/nfs-server ${EXTDIR}/rc.d/init.d/
343 + ln -sf ../init.d/nfs-server ${EXTDIR}/rc.d/rc0.d/K48nfs-server
344 + ln -sf ../init.d/nfs-server ${EXTDIR}/rc.d/rc1.d/K48nfs-server
345 + ln -sf ../init.d/nfs-server ${EXTDIR}/rc.d/rc2.d/K48nfs-server
346 + ln -sf ../init.d/nfs-server ${EXTDIR}/rc.d/rc3.d/S24nfs-server
347 + ln -sf ../init.d/nfs-server ${EXTDIR}/rc.d/rc4.d/S24nfs-server
348 + ln -sf ../init.d/nfs-server ${EXTDIR}/rc.d/rc5.d/S24nfs-server
349 + ln -sf ../init.d/nfs-server ${EXTDIR}/rc.d/rc6.d/K48nfs-server
350 +
351 +install-sysv-ntpd: create-dirs
352 + install -m ${MODE} init.d/ntpd ${EXTDIR}/rc.d/init.d/
353 + ln -sf ../init.d/ntpd ${EXTDIR}/rc.d/rc0.d/K46ntpd
354 + ln -sf ../init.d/ntpd ${EXTDIR}/rc.d/rc1.d/K46ntpd
355 + ln -sf ../init.d/ntpd ${EXTDIR}/rc.d/rc2.d/K46ntpd
356 + ln -sf ../init.d/ntpd ${EXTDIR}/rc.d/rc3.d/S26ntpd
357 + ln -sf ../init.d/ntpd ${EXTDIR}/rc.d/rc4.d/S26ntpd
358 + ln -sf ../init.d/ntpd ${EXTDIR}/rc.d/rc5.d/S26ntpd
359 + ln -sf ../init.d/ntpd ${EXTDIR}/rc.d/rc6.d/K46ntpd
360 +
361 +install-sysv-slapd: create-dirs
362 + install -m ${MODE} init.d/slapd ${EXTDIR}/rc.d/init.d/slapd
363 + install -m ${CONFMODE} sysconfig/slapd ${EXTDIR}/sysconfig/slapd
364 + ln -sf ../init.d/slapd ${EXTDIR}/rc.d/rc0.d/K46slapd
365 + ln -sf ../init.d/slapd ${EXTDIR}/rc.d/rc1.d/K46slapd
366 + ln -sf ../init.d/slapd ${EXTDIR}/rc.d/rc2.d/S25slapd
367 + ln -sf ../init.d/slapd ${EXTDIR}/rc.d/rc3.d/S25slapd
368 + ln -sf ../init.d/slapd ${EXTDIR}/rc.d/rc4.d/S25slapd
369 + ln -sf ../init.d/slapd ${EXTDIR}/rc.d/rc5.d/S25slapd
370 + ln -sf ../init.d/slapd ${EXTDIR}/rc.d/rc6.d/K46slapd
371 +
372 +install-sysv-postfix: create-dirs
373 + install -m ${MODE} init.d/postfix ${EXTDIR}/rc.d/init.d/
374 + ln -sf ../init.d/postfix ${EXTDIR}/rc.d/rc0.d/K25postfix
375 + ln -sf ../init.d/postfix ${EXTDIR}/rc.d/rc1.d/K25postfix
376 + ln -sf ../init.d/postfix ${EXTDIR}/rc.d/rc2.d/K25postfix
377 + ln -sf ../init.d/postfix ${EXTDIR}/rc.d/rc3.d/S35postfix
378 + ln -sf ../init.d/postfix ${EXTDIR}/rc.d/rc4.d/S35postfix
379 + ln -sf ../init.d/postfix ${EXTDIR}/rc.d/rc5.d/S35postfix
380 + ln -sf ../init.d/postfix ${EXTDIR}/rc.d/rc6.d/K25postfix
381 +
382 +install-sysv-postgresql: create-dirs
383 + install -m ${MODE} init.d/postgresql ${EXTDIR}/rc.d/init.d/
384 + ln -sf ../init.d/postgresql ${EXTDIR}/rc.d/rc0.d/K26postgresql
385 + ln -sf ../init.d/postgresql ${EXTDIR}/rc.d/rc1.d/K26postgresql
386 + ln -sf ../init.d/postgresql ${EXTDIR}/rc.d/rc2.d/K26postgresql
387 + ln -sf ../init.d/postgresql ${EXTDIR}/rc.d/rc3.d/S34postgresql
388 + ln -sf ../init.d/postgresql ${EXTDIR}/rc.d/rc4.d/S34postgresql
389 + ln -sf ../init.d/postgresql ${EXTDIR}/rc.d/rc5.d/S34postgresql
390 + ln -sf ../init.d/postgresql ${EXTDIR}/rc.d/rc6.d/K26postgresql
391 +
392 +install-sysv-proftpd: create-dirs
393 + install -m ${MODE} init.d/proftpd ${EXTDIR}/rc.d/init.d/
394 + ln -sf ../init.d/proftpd ${EXTDIR}/rc.d/rc0.d/K28proftpd
395 + ln -sf ../init.d/proftpd ${EXTDIR}/rc.d/rc1.d/K28proftpd
396 + ln -sf ../init.d/proftpd ${EXTDIR}/rc.d/rc2.d/K28proftpd
397 + ln -sf ../init.d/proftpd ${EXTDIR}/rc.d/rc3.d/S32proftpd
398 + ln -sf ../init.d/proftpd ${EXTDIR}/rc.d/rc4.d/S32proftpd
399 + ln -sf ../init.d/proftpd ${EXTDIR}/rc.d/rc5.d/S32proftpd
400 + ln -sf ../init.d/proftpd ${EXTDIR}/rc.d/rc6.d/K28proftpd
401 +
402 +install-sysv-qpopper: create-dirs
403 + install -m ${MODE} init.d/qpopper ${EXTDIR}/rc.d/init.d/
404 + ln -sf ../init.d/qpopper ${EXTDIR}/rc.d/rc0.d/K23qpopper
405 + ln -sf ../init.d/qpopper ${EXTDIR}/rc.d/rc1.d/K23qpopper
406 + ln -sf ../init.d/qpopper ${EXTDIR}/rc.d/rc2.d/K23qpopper
407 + ln -sf ../init.d/qpopper ${EXTDIR}/rc.d/rc3.d/S37qpopper
408 + ln -sf ../init.d/qpopper ${EXTDIR}/rc.d/rc4.d/S37qpopper
409 + ln -sf ../init.d/qpopper ${EXTDIR}/rc.d/rc5.d/S37qpopper
410 + ln -sf ../init.d/qpopper ${EXTDIR}/rc.d/rc6.d/K23qpopper
411 +
412 +install-sysv-random: create-dirs
413 + install -m ${MODE} init.d/random ${EXTDIR}/rc.d/init.d/
414 + ln -sf ../init.d/random ${EXTDIR}/rc.d/rc0.d/K45random
415 + ln -sf ../init.d/random ${EXTDIR}/rc.d/rc1.d/S25random
416 + ln -sf ../init.d/random ${EXTDIR}/rc.d/rc2.d/S25random
417 + ln -sf ../init.d/random ${EXTDIR}/rc.d/rc3.d/S25random
418 + ln -sf ../init.d/random ${EXTDIR}/rc.d/rc4.d/S25random
419 + ln -sf ../init.d/random ${EXTDIR}/rc.d/rc5.d/S25random
420 + ln -sf ../init.d/random ${EXTDIR}/rc.d/rc6.d/K45random
421 +
422 +install-sysv-rpcbind: create-dirs
423 + install -m ${MODE} init.d/rpcbind ${EXTDIR}/rc.d/init.d/
424 + ln -sf ../init.d/rpcbind ${EXTDIR}/rc.d/rc0.d/K49rpcbind
425 + ln -sf ../init.d/rpcbind ${EXTDIR}/rc.d/rc1.d/K49rpcbind
426 + ln -sf ../init.d/rpcbind ${EXTDIR}/rc.d/rc2.d/K49rpcbind
427 + ln -sf ../init.d/rpcbind ${EXTDIR}/rc.d/rc3.d/S22rpcbind
428 + ln -sf ../init.d/rpcbind ${EXTDIR}/rc.d/rc4.d/S22rpcbind
429 + ln -sf ../init.d/rpcbind ${EXTDIR}/rc.d/rc5.d/S22rpcbind
430 + ln -sf ../init.d/rpcbind ${EXTDIR}/rc.d/rc6.d/K49rpcbind
431 +
432 +install-sysv-rsyncd: create-dirs
433 + install -m ${MODE} init.d/rsyncd ${EXTDIR}/rc.d/init.d/
434 + ln -sf ../init.d/rsyncd ${EXTDIR}/rc.d/rc0.d/K30rsyncd
435 + ln -sf ../init.d/rsyncd ${EXTDIR}/rc.d/rc1.d/K30rsyncd
436 + ln -sf ../init.d/rsyncd ${EXTDIR}/rc.d/rc2.d/K30rsyncd
437 + ln -sf ../init.d/rsyncd ${EXTDIR}/rc.d/rc3.d/S30rsyncd
438 + ln -sf ../init.d/rsyncd ${EXTDIR}/rc.d/rc4.d/S30rsyncd
439 + ln -sf ../init.d/rsyncd ${EXTDIR}/rc.d/rc5.d/S30rsyncd
440 + ln -sf ../init.d/rsyncd ${EXTDIR}/rc.d/rc6.d/K30rsyncd
441 +
442 +install-sysv-samba: create-dirs
443 + install -m ${MODE} init.d/samba ${EXTDIR}/rc.d/init.d/
444 + ln -sf ../init.d/samba ${EXTDIR}/rc.d/rc0.d/K48samba
445 + ln -sf ../init.d/samba ${EXTDIR}/rc.d/rc1.d/K48samba
446 + ln -sf ../init.d/samba ${EXTDIR}/rc.d/rc2.d/K48samba
447 + ln -sf ../init.d/samba ${EXTDIR}/rc.d/rc3.d/S45samba
448 + ln -sf ../init.d/samba ${EXTDIR}/rc.d/rc4.d/S45samba
449 + ln -sf ../init.d/samba ${EXTDIR}/rc.d/rc5.d/S45samba
450 + ln -sf ../init.d/samba ${EXTDIR}/rc.d/rc6.d/K48samba
451 +
452 +install-sysv-sddm: create-dirs
453 + install -m ${MODE} init.d/sddm ${EXTDIR}/rc.d/init.d/
454 + ln -sf ../init.d/sddm ${EXTDIR}/rc.d/rc0.d/K05sddm
455 + ln -sf ../init.d/sddm ${EXTDIR}/rc.d/rc1.d/K05sddm
456 + ln -sf ../init.d/sddm ${EXTDIR}/rc.d/rc2.d/K05sddm
457 + ln -sf ../init.d/sddm ${EXTDIR}/rc.d/rc3.d/K05sddm
458 + ln -sf ../init.d/sddm ${EXTDIR}/rc.d/rc4.d/K05sddm
459 + ln -sf ../init.d/sddm ${EXTDIR}/rc.d/rc5.d/S95sddm
460 + ln -sf ../init.d/sddm ${EXTDIR}/rc.d/rc6.d/K05sddm
461 +
462 +install-sysv-lightdm: create-dirs
463 + install -m ${MODE} init.d/lightdm ${EXTDIR}/rc.d/init.d/
464 + ln -sf ../init.d/lightdm ${EXTDIR}/rc.d/rc0.d/K05lightdm
465 + ln -sf ../init.d/lightdm ${EXTDIR}/rc.d/rc1.d/K05lightdm
466 + ln -sf ../init.d/lightdm ${EXTDIR}/rc.d/rc2.d/K05lightdm
467 + ln -sf ../init.d/lightdm ${EXTDIR}/rc.d/rc3.d/K05lightdm
468 + ln -sf ../init.d/lightdm ${EXTDIR}/rc.d/rc4.d/K05lightdm
469 + ln -sf ../init.d/lightdm ${EXTDIR}/rc.d/rc5.d/S95lightdm
470 + ln -sf ../init.d/lightdm ${EXTDIR}/rc.d/rc6.d/K05lightdm
471 +
472 +install-sysv-sendmail: create-dirs
473 + install -m ${MODE} init.d/sendmail ${EXTDIR}/rc.d/init.d/
474 + ln -sf ../init.d/sendmail ${EXTDIR}/rc.d/rc0.d/K25sendmail
475 + ln -sf ../init.d/sendmail ${EXTDIR}/rc.d/rc1.d/K25sendmail
476 + ln -sf ../init.d/sendmail ${EXTDIR}/rc.d/rc2.d/K25sendmail
477 + ln -sf ../init.d/sendmail ${EXTDIR}/rc.d/rc3.d/S35sendmail
478 + ln -sf ../init.d/sendmail ${EXTDIR}/rc.d/rc4.d/S35sendmail
479 + ln -sf ../init.d/sendmail ${EXTDIR}/rc.d/rc5.d/S35sendmail
480 + ln -sf ../init.d/sendmail ${EXTDIR}/rc.d/rc6.d/K25sendmail
481 +
482 +install-sysv-smartd: create-dirs
483 + install -m ${MODE} init.d/smartd ${EXTDIR}/rc.d/init.d/
484 + ln -sf ../init.d/smartd ${EXTDIR}/rc.d/rc0.d/K70smartd
485 + ln -sf ../init.d/smartd ${EXTDIR}/rc.d/rc1.d/K70smartd
486 + ln -sf ../init.d/smartd ${EXTDIR}/rc.d/rc2.d/K70smartd
487 + ln -sf ../init.d/smartd ${EXTDIR}/rc.d/rc3.d/S21smartd
488 + ln -sf ../init.d/smartd ${EXTDIR}/rc.d/rc4.d/S21smartd
489 + ln -sf ../init.d/smartd ${EXTDIR}/rc.d/rc5.d/S21smartd
490 + ln -sf ../init.d/smartd ${EXTDIR}/rc.d/rc6.d/K70smartd
491 +
492 +install-sysv-soprano: create-dirs
493 + install -m ${MODE} init.d/soprano ${EXTDIR}/rc.d/init.d/
494 + ln -sf ../init.d/soprano ${EXTDIR}/rc.d/rc0.d/K35soprano
495 + ln -sf ../init.d/soprano ${EXTDIR}/rc.d/rc1.d/K35soprano
496 + ln -sf ../init.d/soprano ${EXTDIR}/rc.d/rc2.d/K35soprano
497 + ln -sf ../init.d/soprano ${EXTDIR}/rc.d/rc3.d/S48soprano
498 + ln -sf ../init.d/soprano ${EXTDIR}/rc.d/rc4.d/S48soprano
499 + ln -sf ../init.d/soprano ${EXTDIR}/rc.d/rc5.d/S48soprano
500 + ln -sf ../init.d/soprano ${EXTDIR}/rc.d/rc6.d/K35soprano
501 +
502 +install-sysv-swat: create-dirs
503 + install -m ${MODE} init.d/swat ${EXTDIR}/rc.d/init.d/
504 + ln -sf ../init.d/swat ${EXTDIR}/rc.d/rc0.d/K47swat
505 + ln -sf ../init.d/swat ${EXTDIR}/rc.d/rc1.d/K47swat
506 + ln -sf ../init.d/swat ${EXTDIR}/rc.d/rc2.d/K47swat
507 + ln -sf ../init.d/swat ${EXTDIR}/rc.d/rc3.d/S46swat
508 + ln -sf ../init.d/swat ${EXTDIR}/rc.d/rc4.d/S46swat
509 + ln -sf ../init.d/swat ${EXTDIR}/rc.d/rc5.d/S46swat
510 + ln -sf ../init.d/swat ${EXTDIR}/rc.d/rc6.d/K47swat
511 +
512 +install-sysv-sshd: create-dirs
513 + install -m ${MODE} init.d/sshd ${EXTDIR}/rc.d/init.d/
514 + ln -sf ../init.d/sshd ${EXTDIR}/rc.d/rc0.d/K30sshd
515 + ln -sf ../init.d/sshd ${EXTDIR}/rc.d/rc1.d/K30sshd
516 + ln -sf ../init.d/sshd ${EXTDIR}/rc.d/rc2.d/K30sshd
517 + ln -sf ../init.d/sshd ${EXTDIR}/rc.d/rc3.d/S30sshd
518 + ln -sf ../init.d/sshd ${EXTDIR}/rc.d/rc4.d/S30sshd
519 + ln -sf ../init.d/sshd ${EXTDIR}/rc.d/rc5.d/S30sshd
520 + ln -sf ../init.d/sshd ${EXTDIR}/rc.d/rc6.d/K30sshd
521 +
522 +install-sysv-stunnel: create-dirs
523 + install -m ${MODE} init.d/stunnel ${EXTDIR}/rc.d/init.d/
524 + ln -sf ../init.d/stunnel ${EXTDIR}/rc.d/rc0.d/K47stunnel
525 + ln -sf ../init.d/stunnel ${EXTDIR}/rc.d/rc1.d/K47stunnel
526 + ln -sf ../init.d/stunnel ${EXTDIR}/rc.d/rc2.d/K47stunnel
527 + ln -sf ../init.d/stunnel ${EXTDIR}/rc.d/rc3.d/S55stunnel
528 + ln -sf ../init.d/stunnel ${EXTDIR}/rc.d/rc4.d/S55stunnel
529 + ln -sf ../init.d/stunnel ${EXTDIR}/rc.d/rc5.d/S55stunnel
530 + ln -sf ../init.d/stunnel ${EXTDIR}/rc.d/rc6.d/K47stunnel
531 +
532 +install-sysv-svn: create-dirs
533 + install -m ${MODE} init.d/svn ${EXTDIR}/rc.d/init.d/
534 + ln -sf ../init.d/svn ${EXTDIR}/rc.d/rc0.d/K27svn
535 + ln -sf ../init.d/svn ${EXTDIR}/rc.d/rc1.d/K27svn
536 + ln -sf ../init.d/svn ${EXTDIR}/rc.d/rc2.d/K27svn
537 + ln -sf ../init.d/svn ${EXTDIR}/rc.d/rc3.d/S33svn
538 + ln -sf ../init.d/svn ${EXTDIR}/rc.d/rc4.d/S33svn
539 + ln -sf ../init.d/svn ${EXTDIR}/rc.d/rc5.d/S33svn
540 + ln -sf ../init.d/svn ${EXTDIR}/rc.d/rc6.d/K27svn
541 +
542 +install-sysv-sysstat: create-dirs
543 + install -m ${MODE} init.d/sysstat ${EXTDIR}/rc.d/init.d/
544 + ln -sf ../init.d/sysstat ${EXTDIR}/rc.d/rcS.d/S85sysstat
545 +
546 +install-sysv-unbound: create-dirs
547 + install -m ${MODE} init.d/unbound ${EXTDIR}/rc.d/init.d/
548 + ln -sf ../init.d/unbound ${EXTDIR}/rc.d/rc0.d/K79unbound
549 + ln -sf ../init.d/unbound ${EXTDIR}/rc.d/rc1.d/K79unbound
550 + ln -sf ../init.d/unbound ${EXTDIR}/rc.d/rc2.d/K79unbound
551 + ln -sf ../init.d/unbound ${EXTDIR}/rc.d/rc3.d/S21unbound
552 + ln -sf ../init.d/unbound ${EXTDIR}/rc.d/rc4.d/S21unbound
553 + ln -sf ../init.d/unbound ${EXTDIR}/rc.d/rc5.d/S21unbound
554 + ln -sf ../init.d/unbound ${EXTDIR}/rc.d/rc6.d/K79unbound
555 +
556 +install-sysv-virtuoso: create-dirs
557 + install -m ${MODE} init.d/virtuoso ${EXTDIR}/rc.d/init.d/
558 + ln -sf ../init.d/virtuoso ${EXTDIR}/rc.d/rc0.d/K40virtuoso
559 + ln -sf ../init.d/virtuoso ${EXTDIR}/rc.d/rc1.d/K40virtuoso
560 + ln -sf ../init.d/virtuoso ${EXTDIR}/rc.d/rc2.d/K40virtuoso
561 + ln -sf ../init.d/virtuoso ${EXTDIR}/rc.d/rc3.d/S47virtuoso
562 + ln -sf ../init.d/virtuoso ${EXTDIR}/rc.d/rc4.d/S47virtuoso
563 + ln -sf ../init.d/virtuoso ${EXTDIR}/rc.d/rc5.d/S47virtuoso
564 + ln -sf ../init.d/virtuoso ${EXTDIR}/rc.d/rc6.d/K40virtuoso
565 +
566 +install-sysv-vsftpd: create-dirs
567 + install -m ${MODE} init.d/vsftpd ${EXTDIR}/rc.d/init.d/
568 + ln -sf ../init.d/vsftpd ${EXTDIR}/rc.d/rc0.d/K28vsftpd
569 + ln -sf ../init.d/vsftpd ${EXTDIR}/rc.d/rc1.d/K28vsftpd
570 + ln -sf ../init.d/vsftpd ${EXTDIR}/rc.d/rc2.d/K28vsftpd
571 + ln -sf ../init.d/vsftpd ${EXTDIR}/rc.d/rc3.d/S32vsftpd
572 + ln -sf ../init.d/vsftpd ${EXTDIR}/rc.d/rc4.d/S32vsftpd
573 + ln -sf ../init.d/vsftpd ${EXTDIR}/rc.d/rc5.d/S32vsftpd
574 + ln -sf ../init.d/vsftpd ${EXTDIR}/rc.d/rc6.d/K28vsftpd
575 +
576 +install-sysv-winbindd: create-dirs
577 + install -m ${MODE} init.d/winbindd ${EXTDIR}/rc.d/init.d/
578 + ln -sf ../init.d/winbindd ${EXTDIR}/rc.d/rc0.d/K49winbindd
579 + ln -sf ../init.d/winbindd ${EXTDIR}/rc.d/rc1.d/K49winbindd
580 + ln -sf ../init.d/winbindd ${EXTDIR}/rc.d/rc2.d/K49winbindd
581 + ln -sf ../init.d/winbindd ${EXTDIR}/rc.d/rc3.d/S50winbindd
582 + ln -sf ../init.d/winbindd ${EXTDIR}/rc.d/rc4.d/S50winbindd
583 + ln -sf ../init.d/winbindd ${EXTDIR}/rc.d/rc5.d/S50winbindd
584 + ln -sf ../init.d/winbindd ${EXTDIR}/rc.d/rc6.d/K49winbindd
585 +
586 +install-sysv-xinetd: create-dirs
587 + install -m ${MODE} init.d/xinetd ${EXTDIR}/rc.d/init.d/
588 + ln -sf ../init.d/xinetd ${EXTDIR}/rc.d/rc0.d/K49xinetd
589 + ln -sf ../init.d/xinetd ${EXTDIR}/rc.d/rc1.d/K49xinetd
590 + ln -sf ../init.d/xinetd ${EXTDIR}/rc.d/rc2.d/K49xinetd
591 + ln -sf ../init.d/xinetd ${EXTDIR}/rc.d/rc3.d/S23xinetd
592 + ln -sf ../init.d/xinetd ${EXTDIR}/rc.d/rc4.d/S23xinetd
593 + ln -sf ../init.d/xinetd ${EXTDIR}/rc.d/rc5.d/S23xinetd
594 + ln -sf ../init.d/xinetd ${EXTDIR}/rc.d/rc6.d/K49xinetd
595 +
596 +uninstall-sysv-atd:
597 + rm -f ${EXTDIR}/rc.d/init.d/atd
598 + rm -f ${EXTDIR}/rc.d/rc0.d/K29atd
599 + rm -f ${EXTDIR}/rc.d/rc1.d/K29atd
600 + rm -f ${EXTDIR}/rc.d/rc2.d/S68atd
601 + rm -f ${EXTDIR}/rc.d/rc3.d/S68atd
602 + rm -f ${EXTDIR}/rc.d/rc4.d/S68atd
603 + rm -f ${EXTDIR}/rc.d/rc5.d/S68atd
604 + rm -f ${EXTDIR}/rc.d/rc6.d/K29atd
605 +
606 +uninstall-sysv-acpid:
607 + rm -f ${EXTDIR}/rc.d/init.d/acpid
608 + rm -f ${EXTDIR}/rc.d/rc0.d/K32acpid
609 + rm -f ${EXTDIR}/rc.d/rc1.d/K32acpid
610 + rm -f ${EXTDIR}/rc.d/rc2.d/S18acpid
611 + rm -f ${EXTDIR}/rc.d/rc3.d/S18acpid
612 + rm -f ${EXTDIR}/rc.d/rc4.d/S18acpid
613 + rm -f ${EXTDIR}/rc.d/rc5.d/S18acpid
614 + rm -f ${EXTDIR}/rc.d/rc6.d/K32acpid
615 +
616 +uninstall-sysv-alsa:
617 + rm -f ${EXTDIR}/rc.d/init.d/alsa
618 + rm -f ${EXTDIR}/rc.d/rc0.d/K35alsa
619 + rm -f ${EXTDIR}/rc.d/rc1.d/K35alsa
620 + rm -f ${EXTDIR}/rc.d/rc6.d/K35alsa
621 + rm -f ${EXTDIR}/rc.d/rcS.d/S60alsa
622 +
623 +uninstall-sysv-httpd:
624 + rm -f ${EXTDIR}/rc.d/init.d/httpd
625 + rm -f ${EXTDIR}/rc.d/rc0.d/K28httpd
626 + rm -f ${EXTDIR}/rc.d/rc1.d/K28httpd
627 + rm -f ${EXTDIR}/rc.d/rc2.d/K28httpd
628 + rm -f ${EXTDIR}/rc.d/rc3.d/S32httpd
629 + rm -f ${EXTDIR}/rc.d/rc4.d/S32httpd
630 + rm -f ${EXTDIR}/rc.d/rc5.d/S32httpd
631 + rm -f ${EXTDIR}/rc.d/rc6.d/K28httpd
632 +uninstall-sysv-nginx:
633 + rm -f ${EXTDIR}/rc.d/init.d/nginx
634 + rm -f ${EXTDIR}/rc.d/rc0.d/K28nginx
635 + rm -f ${EXTDIR}/rc.d/rc1.d/K28nginx
636 + rm -f ${EXTDIR}/rc.d/rc2.d/K28nginx
637 + rm -f ${EXTDIR}/rc.d/rc3.d/S32nginx
638 + rm -f ${EXTDIR}/rc.d/rc4.d/S32nginx
639 + rm -f ${EXTDIR}/rc.d/rc5.d/S32nginx
640 + rm -f ${EXTDIR}/rc.d/rc6.d/K28nginx
641 +
642 +uninstall-sysv-php:
643 + rm -f ${EXTDIR}/rc.d/init.d/php-fpm
644 + rm -f ${EXTDIR}/rc.d/rc0.d/K28php-fpm
645 + rm -f ${EXTDIR}/rc.d/rc1.d/K28php-fpm
646 + rm -f ${EXTDIR}/rc.d/rc2.d/K28php-fpm
647 + rm -f ${EXTDIR}/rc.d/rc3.d/S32php-fpm
648 + rm -f ${EXTDIR}/rc.d/rc4.d/S32php-fpm
649 + rm -f ${EXTDIR}/rc.d/rc5.d/S32php-fpm
650 + rm -f ${EXTDIR}/rc.d/rc6.d/K28php-fpm
651 +
652 +uninstall-sysv-autofs:
653 + rm -f $(EXTDIR)/rc.d/init.d/autofs
654 + rm -f $(EXTDIR)/rc.d/rcS.d/S52autofs
655 +
656 +uninstall-sysv-avahi:
657 + rm -f ${EXTDIR}/rc.d/init.d/avahi
658 + rm -f ${EXTDIR}/rc.d/rc0.d/K28avahi
659 + rm -f ${EXTDIR}/rc.d/rc1.d/K28avahi
660 + rm -f ${EXTDIR}/rc.d/rc2.d/S34avahi
661 + rm -f ${EXTDIR}/rc.d/rc3.d/S34avahi
662 + rm -f ${EXTDIR}/rc.d/rc4.d/S34avahi
663 + rm -f ${EXTDIR}/rc.d/rc5.d/S34avahi
664 + rm -f ${EXTDIR}/rc.d/rc6.d/K28avahi
665 +
666 +uninstall-sysv-bind:
667 + rm -f ${EXTDIR}/rc.d/init.d/bind
668 + rm -f ${EXTDIR}/rc.d/rc0.d/K49bind
669 + rm -f ${EXTDIR}/rc.d/rc1.d/K49bind
670 + rm -f ${EXTDIR}/rc.d/rc2.d/K49bind
671 + rm -f ${EXTDIR}/rc.d/rc3.d/S22bind
672 + rm -f ${EXTDIR}/rc.d/rc4.d/S22bind
673 + rm -f ${EXTDIR}/rc.d/rc5.d/S22bind
674 + rm -f ${EXTDIR}/rc.d/rc6.d/K49bind
675 +
676 +uninstall-sysv-bluetooth:
677 + rm -f ${EXTDIR}/rc.d/init.d/bluetooth
678 + rm -f ${EXTDIR}/rc.d/rc0.d/K27bluetooth
679 + rm -f ${EXTDIR}/rc.d/rc1.d/K27bluetooth
680 + rm -f ${EXTDIR}/rc.d/rc2.d/S35bluetooth
681 + rm -f ${EXTDIR}/rc.d/rc3.d/S35bluetooth
682 + rm -f ${EXTDIR}/rc.d/rc4.d/S35bluetooth
683 + rm -f ${EXTDIR}/rc.d/rc5.d/S35bluetooth
684 + rm -f ${EXTDIR}/rc.d/rc6.d/K27bluetooth
685 +
686 +uninstall-sysv-cups:
687 + rm -f ${EXTDIR}/rc.d/init.d/cups
688 + rm -f ${EXTDIR}/rc.d/rc0.d/K00cups
689 + rm -f ${EXTDIR}/rc.d/rc1.d/K00cups
690 + rm -f ${EXTDIR}/rc.d/rc2.d/S25cups
691 + rm -f ${EXTDIR}/rc.d/rc3.d/S25cups
692 + rm -f ${EXTDIR}/rc.d/rc4.d/S25cups
693 + rm -f ${EXTDIR}/rc.d/rc5.d/S25cups
694 + rm -f ${EXTDIR}/rc.d/rc6.d/K00cups
695 +
696 +uninstall-sysv-saslauthd:
697 + rm -f ${EXTDIR}/rc.d/init.d/saslauthd
698 + rm -f ${EXTDIR}/sysconfig/saslauthd
699 + rm -f ${EXTDIR}/rc.d/rc0.d/K49saslauthd
700 + rm -f ${EXTDIR}/rc.d/rc1.d/K49saslauthd
701 + rm -f ${EXTDIR}/rc.d/rc2.d/S24saslauthd
702 + rm -f ${EXTDIR}/rc.d/rc3.d/S24saslauthd
703 + rm -f ${EXTDIR}/rc.d/rc4.d/S24saslauthd
704 + rm -f ${EXTDIR}/rc.d/rc5.d/S24saslauthd
705 + rm -f ${EXTDIR}/rc.d/rc6.d/K49saslauthd
706 +
707 +uninstall-sysv-dbus:
708 + rm -f ${EXTDIR}/rc.d/init.d/dbus
709 + rm -f ${EXTDIR}/rc.d/rc0.d/K30dbus
710 + rm -f ${EXTDIR}/rc.d/rc1.d/K30dbus
711 + rm -f ${EXTDIR}/rc.d/rc2.d/S29dbus
712 + rm -f ${EXTDIR}/rc.d/rc3.d/S29dbus
713 + rm -f ${EXTDIR}/rc.d/rc4.d/S29dbus
714 + rm -f ${EXTDIR}/rc.d/rc5.d/S29dbus
715 + rm -f ${EXTDIR}/rc.d/rc6.d/K30dbus
716 +
717 +uninstall-sysv-wicd:
718 + rm -f ${EXTDIR}/rc.d/init.d/wicd
719 + rm -f ${EXTDIR}/rc.d/rc0.d/K20wicd
720 + rm -f ${EXTDIR}/rc.d/rc1.d/K20wicd
721 + rm -f ${EXTDIR}/rc.d/rc2.d/S30wicd
722 + rm -f ${EXTDIR}/rc.d/rc3.d/S30wicd
723 + rm -f ${EXTDIR}/rc.d/rc4.d/S30wicd
724 + rm -f ${EXTDIR}/rc.d/rc5.d/S30wicd
725 + rm -f ${EXTDIR}/rc.d/rc6.d/K20wicd
726 +
727 +uninstall-sysv-dhcpd:
728 + rm -f ${EXTDIR}/rc.d/init.d/dhcpd
729 + rm -f ${EXTDIR}/sysconfig/dhcpd
730 + rm -f ${EXTDIR}/rc.d/rc0.d/K30dhcpd
731 + rm -f ${EXTDIR}/rc.d/rc1.d/K30dhcpd
732 + rm -f ${EXTDIR}/rc.d/rc2.d/K30dhcpd
733 + rm -f ${EXTDIR}/rc.d/rc3.d/S30dhcpd
734 + rm -f ${EXTDIR}/rc.d/rc4.d/S30dhcpd
735 + rm -f ${EXTDIR}/rc.d/rc5.d/S30dhcpd
736 + rm -f ${EXTDIR}/rc.d/rc6.d/K30dhcpd
737 +
738 +uninstall-sysv-dovecot:
739 + rm -f ${EXTDIR}/rc.d/init.d/dovecot
740 + rm -f ${EXTDIR}/rc.d/rc0.d/K78dovecot
741 + rm -f ${EXTDIR}/rc.d/rc1.d/K78dovecot
742 + rm -f ${EXTDIR}/rc.d/rc2.d/K78dovecot
743 + rm -f ${EXTDIR}/rc.d/rc3.d/S27dovecot
744 + rm -f ${EXTDIR}/rc.d/rc4.d/S27dovecot
745 + rm -f ${EXTDIR}/rc.d/rc5.d/S27dovecot
746 + rm -f ${EXTDIR}/rc.d/rc6.d/K78dovecot
747 +
748 +uninstall-sysv-exim:
749 + rm -f ${EXTDIR}/rc.d/init.d/exim
750 + rm -f ${EXTDIR}/rc.d/rc0.d/K25exim
751 + rm -f ${EXTDIR}/rc.d/rc1.d/K25exim
752 + rm -f ${EXTDIR}/rc.d/rc2.d/K25exim
753 + rm -f ${EXTDIR}/rc.d/rc3.d/S35exim
754 + rm -f ${EXTDIR}/rc.d/rc4.d/S35exim
755 + rm -f ${EXTDIR}/rc.d/rc5.d/S35exim
756 + rm -f ${EXTDIR}/rc.d/rc6.d/K25exim
757 +
758 +uninstall-sysv-fcron:
759 + rm -f ${EXTDIR}/rc.d/init.d/fcron
760 + rm -f ${EXTDIR}/rc.d/rc0.d/K08fcron
761 + rm -f ${EXTDIR}/rc.d/rc1.d/K08fcron
762 + rm -f ${EXTDIR}/rc.d/rc2.d/S40fcron
763 + rm -f ${EXTDIR}/rc.d/rc3.d/S40fcron
764 + rm -f ${EXTDIR}/rc.d/rc4.d/S40fcron
765 + rm -f ${EXTDIR}/rc.d/rc5.d/S40fcron
766 + rm -f ${EXTDIR}/rc.d/rc6.d/K08fcron
767 +
768 +uninstall-sysv-gdm:
769 + rm -f ${EXTDIR}/rc.d/init.d/gdm
770 + rm -f ${EXTDIR}/rc.d/rc0.d/K05gdm
771 + rm -f ${EXTDIR}/rc.d/rc1.d/K05gdm
772 + rm -f ${EXTDIR}/rc.d/rc2.d/K05gdm
773 + rm -f ${EXTDIR}/rc.d/rc3.d/K05gdm
774 + rm -f ${EXTDIR}/rc.d/rc4.d/K05gdm
775 + rm -f ${EXTDIR}/rc.d/rc5.d/S95gdm
776 + rm -f ${EXTDIR}/rc.d/rc6.d/K05gdm
777 +
778 +uninstall-sysv-gpm:
779 + rm -f ${EXTDIR}/rc.d/init.d/gpm
780 + rm -f ${EXTDIR}/rc.d/rc0.d/K10gpm
781 + rm -f ${EXTDIR}/rc.d/rc1.d/K10gpm
782 + rm -f ${EXTDIR}/rc.d/rc2.d/S70gpm
783 + rm -f ${EXTDIR}/rc.d/rc3.d/S70gpm
784 + rm -f ${EXTDIR}/rc.d/rc4.d/S70gpm
785 + rm -f ${EXTDIR}/rc.d/rc5.d/S70gpm
786 + rm -f ${EXTDIR}/rc.d/rc6.d/K10gpm
787 +
788 +uninstall-sysv-haveged:
789 + rm -f ${EXTDIR}/rc.d/init.d/haveged
790 + rm -f ${EXTDIR}/rc.d/rc0.d/K90haveged
791 + rm -f ${EXTDIR}/rc.d/rc1.d/K90haveged
792 + rm -f ${EXTDIR}/rc.d/rc2.d/K90haveged
793 + rm -f ${EXTDIR}/rc.d/rc3.d/S21haveged
794 + rm -f ${EXTDIR}/rc.d/rc4.d/S21haveged
795 + rm -f ${EXTDIR}/rc.d/rc5.d/S21haveged
796 + rm -f ${EXTDIR}/rc.d/rc6.d/K90haveged
797 +
798 +uninstall-sysv-heimdal:
799 + rm -f ${EXTDIR}/rc.d/init.d/heimdal
800 + rm -f ${EXTDIR}/rc.d/rc0.d/K42heimdal
801 + rm -f ${EXTDIR}/rc.d/rc1.d/K42heimdal
802 + rm -f ${EXTDIR}/rc.d/rc2.d/K42heimdal
803 + rm -f ${EXTDIR}/rc.d/rc3.d/S28heimdal
804 + rm -f ${EXTDIR}/rc.d/rc4.d/S28heimdal
805 + rm -f ${EXTDIR}/rc.d/rc5.d/S28heimdal
806 + rm -f ${EXTDIR}/rc.d/rc6.d/K42heimdal
807 +
808 +uninstall-sysv-iptables:
809 + rm -f ${EXTDIR}/rc.d/init.d/iptables
810 + rm -f ${EXTDIR}/rc.d/rc3.d/S19iptables
811 + rm -f ${EXTDIR}/rc.d/rc4.d/S19iptables
812 + rm -f ${EXTDIR}/rc.d/rc5.d/S19iptables
813 +
814 +uninstall-sysv-krb5:
815 + rm -f ${EXTDIR}/rc.d/init.d/krb5
816 + rm -f ${EXTDIR}/rc.d/rc0.d/K42krb5
817 + rm -f ${EXTDIR}/rc.d/rc1.d/K42krb5
818 + rm -f ${EXTDIR}/rc.d/rc2.d/K42krb5
819 + rm -f ${EXTDIR}/rc.d/rc3.d/S28krb5
820 + rm -f ${EXTDIR}/rc.d/rc4.d/S28krb5
821 + rm -f ${EXTDIR}/rc.d/rc5.d/S28krb5
822 + rm -f ${EXTDIR}/rc.d/rc6.d/K42krb5
823 +
824 +uninstall-sysv-lprng:
825 + rm -f ${EXTDIR}/rc.d/init.d/lprng
826 + rm -f ${EXTDIR}/rc.d/rc0.d/K00lprng
827 + rm -f ${EXTDIR}/rc.d/rc1.d/K00lprng
828 + rm -f ${EXTDIR}/rc.d/rc2.d/S99lprng
829 + rm -f ${EXTDIR}/rc.d/rc3.d/S99lprng
830 + rm -f ${EXTDIR}/rc.d/rc4.d/S99lprng
831 + rm -f ${EXTDIR}/rc.d/rc5.d/S99lprng
832 + rm -f ${EXTDIR}/rc.d/rc6.d/K00lprng
833 +
834 +uninstall-sysv-lxdm:
835 + rm -f ${EXTDIR}/rc.d/init.d/lxdm
836 + rm -f ${EXTDIR}/rc.d/rc0.d/K05lxdm
837 + rm -f ${EXTDIR}/rc.d/rc1.d/K05lxdm
838 + rm -f ${EXTDIR}/rc.d/rc2.d/K05lxdm
839 + rm -f ${EXTDIR}/rc.d/rc3.d/K05lxdm
840 + rm -f ${EXTDIR}/rc.d/rc4.d/K05lxdm
841 + rm -f ${EXTDIR}/rc.d/rc5.d/S95lxdm
842 + rm -f ${EXTDIR}/rc.d/rc6.d/K05lxdm
843 +
844 +uninstall-sysv-mysql:
845 + rm -f ${EXTDIR}/rc.d/init.d/mysql
846 + rm -f ${EXTDIR}/rc.d/rc0.d/K26mysql
847 + rm -f ${EXTDIR}/rc.d/rc1.d/K26mysql
848 + rm -f ${EXTDIR}/rc.d/rc2.d/K26mysql
849 + rm -f ${EXTDIR}/rc.d/rc3.d/S34mysql
850 + rm -f ${EXTDIR}/rc.d/rc4.d/S34mysql
851 + rm -f ${EXTDIR}/rc.d/rc5.d/S34mysql
852 + rm -f ${EXTDIR}/rc.d/rc6.d/K26mysql
853 +
854 +uninstall-sysv-netfs:
855 + rm -f ${EXTDIR}/rc.d/init.d/netfs
856 + rm -f ${EXTDIR}/rc.d/rc0.d/K47netfs
857 + rm -f ${EXTDIR}/rc.d/rc1.d/K47netfs
858 + rm -f ${EXTDIR}/rc.d/rc2.d/K47netfs
859 + rm -f ${EXTDIR}/rc.d/rc3.d/S28netfs
860 + rm -f ${EXTDIR}/rc.d/rc4.d/S28netfs
861 + rm -f ${EXTDIR}/rc.d/rc5.d/S28netfs
862 + rm -f ${EXTDIR}/rc.d/rc6.d/K47netfs
863 +
864 +uninstall-sysv-networkmanager:
865 + rm -f ${EXTDIR}/rc.d/init.d/networkmanager
866 + rm -f ${EXTDIR}/rc.d/rc0.d/K28networkmanager
867 + rm -f ${EXTDIR}/rc.d/rc1.d/K28networkmanager
868 + rm -f ${EXTDIR}/rc.d/rc2.d/S33networkmanager
869 + rm -f ${EXTDIR}/rc.d/rc3.d/S33networkmanager
870 + rm -f ${EXTDIR}/rc.d/rc4.d/S33networkmanager
871 + rm -f ${EXTDIR}/rc.d/rc5.d/S33networkmanager
872 + rm -f ${EXTDIR}/rc.d/rc6.d/K28networkmanager
873 +
874 +uninstall-sysv-nfs-client:
875 + rm -f ${EXTDIR}/rc.d/init.d/nfs-client
876 + rm -f ${EXTDIR}/rc.d/rc0.d/K48nfs-client
877 + rm -f ${EXTDIR}/rc.d/rc1.d/K48nfs-client
878 + rm -f ${EXTDIR}/rc.d/rc2.d/K48nfs-client
879 + rm -f ${EXTDIR}/rc.d/rc3.d/S24nfs-client
880 + rm -f ${EXTDIR}/rc.d/rc4.d/S24nfs-client
881 + rm -f ${EXTDIR}/rc.d/rc5.d/S24nfs-client
882 + rm -f ${EXTDIR}/rc.d/rc6.d/K48nfs-client
883 +
884 +uninstall-sysv-nfs-server:
885 + rm -f ${EXTDIR}/rc.d/init.d/nfs-server
886 + rm -f ${EXTDIR}/rc.d/rc0.d/K48nfs-server
887 + rm -f ${EXTDIR}/rc.d/rc1.d/K48nfs-server
888 + rm -f ${EXTDIR}/rc.d/rc2.d/K48nfs-server
889 + rm -f ${EXTDIR}/rc.d/rc3.d/S24nfs-server
890 + rm -f ${EXTDIR}/rc.d/rc4.d/S24nfs-server
891 + rm -f ${EXTDIR}/rc.d/rc5.d/S24nfs-server
892 + rm -f ${EXTDIR}/rc.d/rc6.d/K48nfs-server
893 +
894 +uninstall-sysv-ntpd:
895 + rm -f ${EXTDIR}/rc.d/init.d/ntpd
896 + rm -f ${EXTDIR}/rc.d/rc0.d/K46ntpd
897 + rm -f ${EXTDIR}/rc.d/rc1.d/K46ntpd
898 + rm -f ${EXTDIR}/rc.d/rc2.d/K46ntpd
899 + rm -f ${EXTDIR}/rc.d/rc3.d/S26ntpd
900 + rm -f ${EXTDIR}/rc.d/rc4.d/S26ntpd
901 + rm -f ${EXTDIR}/rc.d/rc5.d/S26ntpd
902 + rm -f ${EXTDIR}/rc.d/rc6.d/K46ntpd
903 +
904 +uninstall-sysv-slapd:
905 + rm -f ${EXTDIR}/rc.d/init.d/slapd
906 + rm -f ${EXTDIR}/sysconfig/slapd
907 + rm -f ${EXTDIR}/rc.d/rc0.d/K46slapd
908 + rm -f ${EXTDIR}/rc.d/rc1.d/K46slapd
909 + rm -f ${EXTDIR}/rc.d/rc2.d/S25slapd
910 + rm -f ${EXTDIR}/rc.d/rc3.d/S25slapd
911 + rm -f ${EXTDIR}/rc.d/rc4.d/S25slapd
912 + rm -f ${EXTDIR}/rc.d/rc5.d/S25slapd
913 + rm -f ${EXTDIR}/rc.d/rc6.d/K46slapd
914 +
915 +uinstall-smartd: c
916 + rm -f ${EXTDIR}/rc.d/init.d/smartd
917 + rm -f ${EXTDIR}/rc.d/rc0.d/K70smartd
918 + rm -f ${EXTDIR}/rc.d/rc1.d/K70smartd
919 + rm -f ${EXTDIR}/rc.d/rc2.d/K70smartd
920 + rm -f ${EXTDIR}/rc.d/rc3.d/S21smartd
921 + rm -f ${EXTDIR}/rc.d/rc4.d/S21smartd
922 + rm -f ${EXTDIR}/rc.d/rc5.d/S21smartd
923 + rm -f ${EXTDIR}/rc.d/rc6.d/K70smartd
924 +
925 +uninstall-sysv-postfix:
926 + rm -f ${EXTDIR}/rc.d/init.d/postfix
927 + rm -f ${EXTDIR}/rc.d/rc0.d/K25postfix
928 + rm -f ${EXTDIR}/rc.d/rc1.d/K25postfix
929 + rm -f ${EXTDIR}/rc.d/rc2.d/K25postfix
930 + rm -f ${EXTDIR}/rc.d/rc3.d/S35postfix
931 + rm -f ${EXTDIR}/rc.d/rc4.d/S35postfix
932 + rm -f ${EXTDIR}/rc.d/rc5.d/S35postfix
933 + rm -f ${EXTDIR}/rc.d/rc6.d/K25postfix
934 +
935 +uninstall-sysv-postgresql:
936 + rm -f ${EXTDIR}/rc.d/init.d/postgresql
937 + rm -f ${EXTDIR}/rc.d/rc0.d/K26postgresql
938 + rm -f ${EXTDIR}/rc.d/rc1.d/K26postgresql
939 + rm -f ${EXTDIR}/rc.d/rc2.d/K26postgresql
940 + rm -f ${EXTDIR}/rc.d/rc3.d/S34postgresql
941 + rm -f ${EXTDIR}/rc.d/rc4.d/S34postgresql
942 + rm -f ${EXTDIR}/rc.d/rc5.d/S34postgresql
943 + rm -f ${EXTDIR}/rc.d/rc6.d/K26postgresql
944 +
945 +uninstall-sysv-proftpd:
946 + rm -f ${EXTDIR}/rc.d/init.d/proftpd
947 + rm -f ${EXTDIR}/rc.d/rc0.d/K28proftpd
948 + rm -f ${EXTDIR}/rc.d/rc1.d/K28proftpd
949 + rm -f ${EXTDIR}/rc.d/rc2.d/K28proftpd
950 + rm -f ${EXTDIR}/rc.d/rc3.d/S32proftpd
951 + rm -f ${EXTDIR}/rc.d/rc4.d/S32proftpd
952 + rm -f ${EXTDIR}/rc.d/rc5.d/S32proftpd
953 + rm -f ${EXTDIR}/rc.d/rc6.d/K28proftpd
954 +
955 +uninstall-sysv-random:
956 + rm -f ${EXTDIR}/rc.d/init.d/random
957 + rm -f ${EXTDIR}/rc.d/rc0.d/K45random
958 + rm -f ${EXTDIR}/rc.d/rc1.d/S25random
959 + rm -f ${EXTDIR}/rc.d/rc2.d/S25random
960 + rm -f ${EXTDIR}/rc.d/rc3.d/S25random
961 + rm -f ${EXTDIR}/rc.d/rc4.d/S25random
962 + rm -f ${EXTDIR}/rc.d/rc5.d/S25random
963 + rm -f ${EXTDIR}/rc.d/rc6.d/K45random
964 +
965 +uninstall-sysv-rpcbind:
966 + rm -f ${EXTDIR}/rc.d/init.d/rpcbind
967 + rm -f ${EXTDIR}/rc.d/rc0.d/K49rpcbind
968 + rm -f ${EXTDIR}/rc.d/rc1.d/K49rpcbind
969 + rm -f ${EXTDIR}/rc.d/rc2.d/K49rpcbind
970 + rm -f ${EXTDIR}/rc.d/rc3.d/S22rpcbind
971 + rm -f ${EXTDIR}/rc.d/rc4.d/S22rpcbind
972 + rm -f ${EXTDIR}/rc.d/rc5.d/S22rpcbind
973 + rm -f ${EXTDIR}/rc.d/rc6.d/K49rpcbind
974 +
975 +uninstall-sysv-rsyncd:
976 + rm -f ${EXTDIR}/rc.d/init.d/rsyncd
977 + rm -f ${EXTDIR}/rc.d/rc0.d/K30rsyncd
978 + rm -f ${EXTDIR}/rc.d/rc1.d/K30rsyncd
979 + rm -f ${EXTDIR}/rc.d/rc2.d/K30rsyncd
980 + rm -f ${EXTDIR}/rc.d/rc3.d/S30rsyncd
981 + rm -f ${EXTDIR}/rc.d/rc4.d/S30rsyncd
982 + rm -f ${EXTDIR}/rc.d/rc5.d/S30rsyncd
983 + rm -f ${EXTDIR}/rc.d/rc6.d/K30rsyncd
984 +
985 +uninstall-sysv-samba:
986 + rm -f ${EXTDIR}/rc.d/init.d/samba
987 + rm -f ${EXTDIR}/rc.d/rc0.d/K48samba
988 + rm -f ${EXTDIR}/rc.d/rc1.d/K48samba
989 + rm -f ${EXTDIR}/rc.d/rc2.d/K48samba
990 + rm -f ${EXTDIR}/rc.d/rc3.d/S45samba
991 + rm -f ${EXTDIR}/rc.d/rc4.d/S45samba
992 + rm -f ${EXTDIR}/rc.d/rc5.d/S45samba
993 + rm -f ${EXTDIR}/rc.d/rc6.d/K48samba
994 +
995 +uninstall-sysv-sddm:
996 + rm -f ${EXTDIR}/rc.d/init.d/sddm
997 + rm -f ${EXTDIR}/rc.d/rc0.d/K05sddm
998 + rm -f ${EXTDIR}/rc.d/rc1.d/K05sddm
999 + rm -f ${EXTDIR}/rc.d/rc2.d/K05sddm
1000 + rm -f ${EXTDIR}/rc.d/rc3.d/K05sddm
1001 + rm -f ${EXTDIR}/rc.d/rc4.d/K05sddm
1002 + rm -f ${EXTDIR}/rc.d/rc5.d/S95sddm
1003 + rm -f ${EXTDIR}/rc.d/rc6.d/K05sddm
1004 +
1005 +uninstall-sysv-lightdm:
1006 + rm -f ${EXTDIR}/rc.d/init.d/lightd
1007 + rm -f ${EXTDIR}/rc.d/rc0.d/K05lightdm
1008 + rm -f ${EXTDIR}/rc.d/rc1.d/K05lightdm
1009 + rm -f ${EXTDIR}/rc.d/rc2.d/K05lightdm
1010 + rm -f ${EXTDIR}/rc.d/rc3.d/K05lightdm
1011 + rm -f ${EXTDIR}/rc.d/rc4.d/K05lightdm
1012 + rm -f ${EXTDIR}/rc.d/rc5.d/S95lightdm
1013 + rm -f ${EXTDIR}/rc.d/rc6.d/K05lightdm
1014 +
1015 +uninstall-sysv-sendmail:
1016 + rm -f ${EXTDIR}/rc.d/init.d/sendmail
1017 + rm -f ${EXTDIR}/rc.d/rc0.d/K25sendmail
1018 + rm -f ${EXTDIR}/rc.d/rc1.d/K25sendmail
1019 + rm -f ${EXTDIR}/rc.d/rc2.d/K25sendmail
1020 + rm -f ${EXTDIR}/rc.d/rc3.d/S35sendmail
1021 + rm -f ${EXTDIR}/rc.d/rc4.d/S35sendmail
1022 + rm -f ${EXTDIR}/rc.d/rc5.d/S35sendmail
1023 + rm -f ${EXTDIR}/rc.d/rc6.d/K25sendmail
1024 +
1025 +uninstall-sysv-sshd:
1026 + rm -f ${EXTDIR}/rc.d/init.d/sshd
1027 + rm -f ${EXTDIR}/rc.d/rc0.d/K30sshd
1028 + rm -f ${EXTDIR}/rc.d/rc1.d/K30sshd
1029 + rm -f ${EXTDIR}/rc.d/rc2.d/K30sshd
1030 + rm -f ${EXTDIR}/rc.d/rc3.d/S30sshd
1031 + rm -f ${EXTDIR}/rc.d/rc4.d/S30sshd
1032 + rm -f ${EXTDIR}/rc.d/rc5.d/S30sshd
1033 + rm -f ${EXTDIR}/rc.d/rc6.d/K30sshd
1034 +
1035 +uninstall-sysv-stunnel:
1036 + rm -f ${EXTDIR}/rc.d/init.d/stunnel
1037 + rm -f ${EXTDIR}/rc.d/rc0.d/K47stunnel
1038 + rm -f ${EXTDIR}/rc.d/rc1.d/K47stunnel
1039 + rm -f ${EXTDIR}/rc.d/rc2.d/K47stunnel
1040 + rm -f ${EXTDIR}/rc.d/rc3.d/S55stunnel
1041 + rm -f ${EXTDIR}/rc.d/rc4.d/S55stunnel
1042 + rm -f ${EXTDIR}/rc.d/rc5.d/S55stunnel
1043 + rm -f ${EXTDIR}/rc.d/rc6.d/K47stunnel
1044 +
1045 +uninstall-sysv-svn:
1046 + rm -f ${EXTDIR}/rc.d/init.d/svn
1047 + rm -f ${EXTDIR}/rc.d/rc0.d/K27svn
1048 + rm -f ${EXTDIR}/rc.d/rc1.d/K27svn
1049 + rm -f ${EXTDIR}/rc.d/rc2.d/K27svn
1050 + rm -f ${EXTDIR}/rc.d/rc3.d/S33svn
1051 + rm -f ${EXTDIR}/rc.d/rc4.d/S33svn
1052 + rm -f ${EXTDIR}/rc.d/rc5.d/S33svn
1053 + rm -f ${EXTDIR}/rc.d/rc6.d/K27svn
1054 +
1055 +uninstall-sysv-sysstat:
1056 + rm -f ${EXTDIR}/rc.d/init.d/sysstat
1057 + rm -f ${EXTDIR}/rc.d/rcS.d/S85sysstat
1058 +
1059 +uninstall-sysv-unbound:
1060 + rm -f ${EXTDIR}/rc.d/init.d/unbound
1061 + rm -f ${EXTDIR}/rc.d/rc0.d/K79unbound
1062 + rm -f ${EXTDIR}/rc.d/rc1.d/K79unbound
1063 + rm -f ${EXTDIR}/rc.d/rc2.d/K79unbound
1064 + rm -f ${EXTDIR}/rc.d/rc3.d/S21unbound
1065 + rm -f ${EXTDIR}/rc.d/rc4.d/S21unbound
1066 + rm -f ${EXTDIR}/rc.d/rc5.d/S21unbound
1067 + rm -f ${EXTDIR}/rc.d/rc6.d/K79unbound
1068 +
1069 +uninstall-sysv-virtuoso:
1070 + rm -f ${EXTDIR}/rc.d/init.d/virtuoso
1071 + rm -f ${EXTDIR}/rc.d/rc0.d/K40virtuoso
1072 + rm -f ${EXTDIR}/rc.d/rc1.d/K40virtuoso
1073 + rm -f ${EXTDIR}/rc.d/rc2.d/K40virtuoso
1074 + rm -f ${EXTDIR}/rc.d/rc3.d/S47virtuoso
1075 + rm -f ${EXTDIR}/rc.d/rc4.d/S47virtuoso
1076 + rm -f ${EXTDIR}/rc.d/rc5.d/S47virtuoso
1077 + rm -f ${EXTDIR}/rc.d/rc6.d/K40virtuoso
1078 +
1079 +uninstall-sysv-vsftpd:
1080 + rm -f ${EXTDIR}/rc.d/init.d/vsftpd
1081 + rm -f ${EXTDIR}/rc.d/rc0.d/K28vsftpd
1082 + rm -f ${EXTDIR}/rc.d/rc1.d/K28vsftpd
1083 + rm -f ${EXTDIR}/rc.d/rc2.d/K28vsftpd
1084 + rm -f ${EXTDIR}/rc.d/rc3.d/S32vsftpd
1085 + rm -f ${EXTDIR}/rc.d/rc4.d/S32vsftpd
1086 + rm -f ${EXTDIR}/rc.d/rc5.d/S32vsftpd
1087 + rm -f ${EXTDIR}/rc.d/rc6.d/K28vsftpd
1088 +
1089 +uninstall-sysv-winbindd:
1090 + rm -f ${EXTDIR}/rc.d/init.d/winbindd
1091 + rm -f ${EXTDIR}/rc.d/rc0.d/K49winbindd
1092 + rm -f ${EXTDIR}/rc.d/rc1.d/K49winbindd
1093 + rm -f ${EXTDIR}/rc.d/rc2.d/K49winbindd
1094 + rm -f ${EXTDIR}/rc.d/rc3.d/S50winbindd
1095 + rm -f ${EXTDIR}/rc.d/rc4.d/S50winbindd
1096 + rm -f ${EXTDIR}/rc.d/rc5.d/S50winbindd
1097 + rm -f ${EXTDIR}/rc.d/rc6.d/K49winbindd
1098 +
1099 +uninstall-sysv-xinetd:
1100 + rm -f ${EXTDIR}/rc.d/init.d/xinetd
1101 + rm -f ${EXTDIR}/rc.d/rc0.d/K49xinetd
1102 + rm -f ${EXTDIR}/rc.d/rc1.d/K49xinetd
1103 + rm -f ${EXTDIR}/rc.d/rc2.d/K49xinetd
1104 + rm -f ${EXTDIR}/rc.d/rc3.d/S23xinetd
1105 + rm -f ${EXTDIR}/rc.d/rc4.d/S23xinetd
1106 + rm -f ${EXTDIR}/rc.d/rc5.d/S23xinetd
1107 + rm -f ${EXTDIR}/rc.d/rc6.d/K49xinetd
1108 +
1109 +.PHONY: all create-dirs create-service-dir \
1110 + install-sysv-service-dhclient \
1111 + install-sysv-service-dhcpcd \
1112 + install-sysv-service-ipx \
1113 + install-sysv-service-pppoe \
1114 + install-sysv-atd \
1115 + install-sysv-acpid \
1116 + install-sysv-alsa \
1117 + install-sysv-avahi \
1118 + install-sysv-httpd \
1119 + install-sysv-nginx \
1120 + install-sysv-php \
1121 + install-sysv-bind \
1122 + install-sysv-bluetooth \
1123 + install-sysv-cups \
1124 + install-sysv-saslauthd \
1125 + install-sysv-wicd \
1126 + install-sysv-dhcpd \
1127 + install-sysv-dovecot \
1128 + install-sysv-exim \
1129 + install-sysv-fcron \
1130 + install-sysv-gdm \
1131 + install-sysv-gpm \
1132 + install-sysv-heimdal \
1133 + install-sysv-iptables \
1134 + install-sysv-krb5 \
1135 + install-sysv-lprng \
1136 + install-sysv-mysql \
1137 + install-sysv-netfs \
1138 + install-sysv-networkmanager \
1139 + install-sysv-nfs-client \
1140 + install-sysv-nfs-server \
1141 + install-sysv-ntpd \
1142 + install-sysv-slapd \
1143 + install-sysv-postfix \
1144 + install-sysv-postgresql \
1145 + install-sysv-proftpd \
1146 + install-sysv-random \
1147 + install-sysv-rsync \
1148 + install-sysv-samba \
1149 + install-sysv-sddm \
1150 + install-sysv-sendmail \
1151 + install-sysv-soprano \
1152 + install-sysv-sshd \
1153 + install-sysv-stunnel \
1154 + install-sysv-svn \
1155 + install-sysv-sysstat \
1156 + install-sysv-vsftpd \
1157 + install-sysv-unbound \
1158 + install-sysv-virtuoso \
1159 + install-sysv-winbindd \
1160 + install-sysv-xinetd \
1161 + uninstall-sysv-atd \
1162 + uninstall-sysv-acpid \
1163 + uninstall-sysv-alsa \
1164 + uninstall-sysv-avahi \
1165 + uninstall-sysv-httpd \
1166 + uninstall-sysv-nginx \
1167 + uninstall-sysv-php \
1168 + uninstall-sysv-bind \
1169 + uninstall-sysv-bluetooth \
1170 + uninstall-sysv-cups \
1171 + uninstall-sysv-saslauthd \
1172 + uninstall-sysv-wicd \
1173 + uninstall-sysv-dhcpd \
1174 + uninstall-sysv-dovecot \
1175 + uninstall-sysv-exim \
1176 + uninstall-sysv-fcron \
1177 + uninstall-sysv-gdm \
1178 + uninstall-sysv-gpm \
1179 + uninstall-sysv-heimdal \
1180 + uninstall-sysv-iptables \
1181 + uninstall-sysv-krb5 \
1182 + uninstall-sysv-lprng \
1183 + uninstall-sysv-mysql \
1184 + uninstall-sysv-netfs \
1185 + uninstall-sysv-networkmanager \
1186 + uninstall-sysv-nfs-client \
1187 + uninstall-sysv-nfs-server \
1188 + uninstall-sysv-ntpd \
1189 + uninstall-sysv-slapd \
1190 + uninstall-sysv-postfix \
1191 + uninstall-sysv-postgresql \
1192 + uninstall-sysv-proftpd \
1193 + uninstall-sysv-random \
1194 + uninstall-sysv-rsync \
1195 + uninstall-sysv-samba \
1196 + uninstall-sysv-sddm \
1197 + uninstall-sysv-sendmail \
1198 + uninstall-sysv-soprano \
1199 + uninstall-sysv-sshd \
1200 + uninstall-sysv-stunnel \
1201 + uninstall-sysv-svn \
1202 + uninstall-sysv-sysstat \
1203 + uninstall-sysv-unbound \
1204 + uninstall-sysv-virtuoso \
1205 + uninstall-sysv-vsftpd \
1206 + uninstall-sysv-winbindd \
1207 + uninstall-sysv-xinetd
0 1208 new file mode 100644
@@ -0,0 +1,59 @@
1 +#!/bin/sh
2 +########################################################################
3 +# Begin acpid
4 +#
5 +# Description : ACPI event daemon boot script
6 +#
7 +# Author : Igor Živković <contact@igor-zivkovic.from.hr>
8 +#
9 +# Version : BLFS SVN
10 +#
11 +########################################################################
12 +
13 +### BEGIN INIT INFO
14 +# Provides: acpid
15 +# Required-Start: $remote_fs $syslog
16 +# Required-Stop: $remote_fs $syslog
17 +# Default-Start: 2 3 4 5
18 +# Default-Stop: 0 1 6
19 +# Short-Description: Starts Advanced Configuration and Power Interface event daemon
20 +# X-LFS-Provided-By: BLFS
21 +### END INIT INFO
22 +
23 +. /lib/lsb/init-functions
24 +
25 +#$LastChangedBy: igor $
26 +#$Date: 2013-07-10 17:04:20 -0500 (Wed, 10 Jul 2013) $
27 +
28 +case "$1" in
29 + start)
30 + log_info_msg "Starting ACPI event daemon..."
31 + start_daemon /usr/sbin/acpid
32 + sleep 1
33 + pidofproc -p "/run/acpid.pid" > /dev/null
34 + evaluate_retval
35 + ;;
36 +
37 + stop)
38 + log_info_msg "Stopping ACPI event daemon..."
39 + killproc -p "/run/acpid.pid" /usr/sbin/acpid
40 + evaluate_retval
41 + ;;
42 +
43 + restart)
44 + $0 stop
45 + sleep 1
46 + $0 start
47 + ;;
48 +
49 + status)
50 + statusproc /usr/sbin/acpid
51 + ;;
52 +
53 + *)
54 + echo "Usage: $0 {start|stop|restart|status}"
55 + exit 1
56 + ;;
57 +esac
58 +
59 +# End acpid
0 60 new file mode 100644
@@ -0,0 +1,51 @@
1 +#!/bin/sh
2 +########################################################################
3 +# Begin alsa
4 +#
5 +# Description : Restore and store ALSA settings
6 +#
7 +# Author : Bruce Dubbs - bdubbs@linuxfromscratch.org
8 +#
9 +# Version : BLFS SVN
10 +#
11 +########################################################################
12 +
13 +### BEGIN INIT INFO
14 +# Provides: alsa
15 +# Required-Start:
16 +# Should-Start:
17 +# Required-Stop: sendsignals
18 +# Should-Stop:
19 +# Default-Start: S
20 +# Default-Stop: 0 1 6
21 +# Short-Description: Restore and store ALSA mixer settings.
22 +# Description: Restores and stores ALSA mixer settings in the default
23 +# location: /var/lib/alsa/asound.state.
24 +# X-LFS-Provided-By: BLFS
25 +### END INIT INFO
26 +
27 +. /lib/lsb/init-functions
28 +
29 +#$LastChangedBy: igor $
30 +#$Date: 2013-07-25 04:50:36 -0500 (Thu, 25 Jul 2013) $
31 +
32 +case "$1" in
33 + start)
34 + log_info_msg "Starting ALSA... Restoring volumes..."
35 + /usr/sbin/alsactl restore
36 + evaluate_retval
37 + ;;
38 +
39 + stop)
40 + log_info_msg "Stopping ALSA... Saving volumes..."
41 + /usr/sbin/alsactl store
42 + evaluate_retval
43 + ;;
44 +
45 + *)
46 + echo "Usage: $0 {start|stop}"
47 + exit 1
48 + ;;
49 +esac
50 +
51 +# End alsa
0 52 new file mode 100644
@@ -0,0 +1,61 @@
1 +#!/bin/sh
2 +########################################################################
3 +# Begin atd
4 +#
5 +# Description : Start atd daemon
6 +#
7 +# Author : Bruce Dubbs - bdubbs@linuxfromscratch.org
8 +#
9 +# Version : LFS 7.2
10 +#
11 +########################################################################
12 +
13 +### BEGIN INIT INFO
14 +# Provides: atd
15 +# Required-Start: $time
16 +# Should-Start:
17 +# Required-Stop:
18 +# Should-Stop:
19 +# Default-Start: 2 3 4 5
20 +# Default-Stop: 0 1 6
21 +# Short-Description: atd daemon
22 +# Description: Run jobs queued for later execution
23 +# X-LFS-Provided-By: BLFS / LFS 7.2
24 +### END INIT INFO
25 +
26 +. /lib/lsb/init-functions
27 +
28 +#$LastChangedBy: bdubbs $
29 +#$Date: 2012-05-09 15:19:23 -0500 (Wed, 09 May 2012) $
30 +
31 +case "$1" in
32 + start)
33 + log_info_msg "Starting atd..."
34 + start_daemon /usr/sbin/atd
35 + evaluate_retval
36 + ;;
37 +
38 + stop)
39 + log_info_msg "Stopping atd..."
40 + killproc /usr/sbin/atd
41 + evaluate_retval
42 + ;;
43 +
44 + restart)
45 + $0 stop
46 + sleep 1
47 + $0 start
48 + ;;
49 +
50 + status)
51 + statusproc /usr/sbin/atd
52 + ;;
53 +
54 + *)
55 + echo "Usage: $0 {start|stop|restart|status}"
56 + exit 1
57 + ;;
58 +esac
59 +
60 +# End atd
61 +
0 62 new file mode 100644
@@ -0,0 +1,157 @@
1 +#!/bin/bash
2 +########################################################################
3 +# Begin autofs
4 +#
5 +# Description : Start daemon for automounting file systems
6 +#
7 +# Author : Bruce Dubbs - bdubbs@linuxfromscratch.org
8 +#
9 +# Version : LFS 7.2
10 +#
11 +# Notes : Updates to autofs distributed start script to make
12 +# compatible with BLFS
13 +#
14 +########################################################################
15 +
16 +### BEGIN INIT INFO
17 +# Provides: autofs
18 +# Required-Start: $network
19 +# Required-Stop: $network
20 +# Default-Start: 3 4 5
21 +# Default-Stop: 0 1 2 6
22 +# Short-Description: Automounts filesystems on demand
23 +# Description: Automounts filesystems on demand
24 +### END INIT INFO
25 +
26 +#
27 +# Location of the automount daemon and the init directory
28 +#
29 +DAEMON=/sbin/automount
30 +prog=`basename $DAEMON`
31 +MODULE="autofs4"
32 +DEVICE="autofs"
33 +confdir=/etc/sysconfig
34 +
35 +test -e $DAEMON || exit 0
36 +
37 +PATH=/sbin:/usr/sbin:/bin:/usr/bin
38 +export PATH
39 +
40 +#
41 +# load customized configuation settings
42 +#
43 +if [ -r $confdir/autofs ]; then
44 + . $confdir/autofs
45 +fi
46 +
47 +. /lib/lsb/init-functions
48 +
49 +function start() {
50 + log_info_msg "Starting $prog: "
51 +
52 + # Make sure autofs4 module is loaded
53 + if ! grep -q autofs /proc/filesystems
54 + then
55 + # Try load the autofs4 module fail if we can't
56 + modprobe $MODULE >/dev/null 2>&1
57 + if [ $? -eq 1 ]
58 + then
59 + log_failure_msg "Error: failed to load autofs4 module."
60 + return 1
61 + fi
62 + elif ([ -f /proc/modules ] && lsmod) | grep -q autofs[^4]
63 + then
64 + # wrong autofs filesystem module loaded
65 + log_failure_msg "Error: autofs kernel module is loaded, autofs4 required"
66 + return 1
67 + fi
68 +
69 + # Check misc device
70 + if [ -n "$USE_MISC_DEVICE" -a "x$USE_MISC_DEVICE" = "xyes" ]; then
71 + sleep 1
72 + if [ -e "/proc/misc" ]; then
73 + MINOR=`awk "/$DEVICE/ {print \\$1}" /proc/misc`
74 + if [ -n "$MINOR" -a ! -c "/dev/$DEVICE" ]; then
75 + mknod -m 0600 /dev/$DEVICE c 10 $MINOR
76 + fi
77 + fi
78 + if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then
79 + /sbin/restorecon /dev/$DEVICE
80 + fi
81 + else
82 + if [ -c /dev/$DEVICE ]; then
83 + rm /dev/$DEVICE
84 + fi
85 + fi
86 +
87 + $prog $OPTIONS
88 + evaluate_retval
89 +}
90 +
91 +function stop() {
92 + log_info_msg $"Stopping $prog: "
93 + count=0
94 + while [ -n "`pidof $prog`" -a $count -lt 15 ] ; do
95 + killall -TERM $prog >& /dev/null
96 + RETVAL=$?
97 + [ $RETVAL = 0 -a -z "`pidof $prog`" ] || sleep 3
98 + count=`expr $count + 1`
99 + done
100 + if [ -z "`pidof $prog`" ] ; then
101 + log_success_msg2
102 + else
103 + log_failure_msg2
104 + fi
105 + return $RETVAL
106 +}
107 +
108 +function restart() {
109 + stop
110 + start
111 +}
112 +
113 +function reload() {
114 + pid=`pidof $prog`
115 + if [ -z $pid ]; then
116 + log_failure_msg2 $"$prog not running"
117 + RETVAL=1
118 + else
119 + kill -HUP $pid 2> /dev/null
120 + log_success_msg2 $"Reloading maps"
121 + RETVAL=0
122 + fi
123 + return $RETVAL
124 +}
125 +
126 +RETVAL=0
127 +
128 +case "$1" in
129 + start)
130 + start
131 + ;;
132 + forcestart)
133 + OPTIONS="$OPTIONS --force"
134 + start
135 + ;;
136 + stop)
137 + stop
138 + ;;
139 + restart)
140 + restart
141 + ;;
142 + forcerestart)
143 + OPTIONS="$OPTIONS --force"
144 + restart
145 + ;;
146 + reload)
147 + reload
148 + ;;
149 + *)
150 + echo $"Usage: $0 {start|forcestart|stop|restart|forcerestart|reload}"
151 + exit 1;
152 + ;;
153 +esac
154 +
155 +exit $?
156 +
157 +
0 158 new file mode 100644
@@ -0,0 +1,77 @@
1 +#!/bin/sh
2 +########################################################################
3 +# Begin avahi
4 +#
5 +# Description : Avahi Boot Script
6 +#
7 +# Authors : William Immendorf - will.immendorf@gmail.com
8 +# Bruce Dubbs - bdubbs@linuxfromscratch.org
9 +#
10 +# Version : LFS 7.2
11 +#
12 +########################################################################
13 +
14 +### BEGIN INIT INFO
15 +# Provides: avahi
16 +# Required-Start: $syslog $local_fs $network
17 +# Should-Start: $remote_fs
18 +# Required-Stop: $network
19 +# Should-Stop: $remote_fs
20 +# Default-Start: 3 4 5
21 +# Default-Stop: 0 1 2 6
22 +# Short-Description: Service discovery on a local network
23 +# Description: Service discovery on a local network
24 +# X-LFS-Provided-By: BLFS / LFS 7.2
25 +### END INIT INFO
26 +
27 +. /lib/lsb/init-functions
28 +
29 +case "${1}" in
30 + start)
31 + log_info_msg "Starting the Avahi Daemon"
32 + /usr/sbin/avahi-daemon -D
33 + evaluate_retval
34 +
35 + log_info_msg "Starting the Avahi mDNS/DNS-SD Configuration Daemon"
36 + /usr/sbin/avahi-dnsconfd -D
37 + evaluate_retval
38 + ;;
39 +
40 + stop)
41 + log_info_msg "Stopping the Avahi mDNS/DNS-SD Configuration Daemon"
42 + /usr/sbin/avahi-dnsconfd -k
43 + evaluate_retval
44 +
45 + log_info_msg "Stopping the Avahi Daemon"
46 + /usr/sbin/avahi-daemon -k
47 + evaluate_retval
48 + ;;
49 +
50 + reload)
51 + log_info_msg "Reloading the Avahi mDNS/DNS-SD Configuration Daemon"
52 + /usr/sbin/avahi-dnsconfd -r
53 + evaluate_retval
54 +
55 + log_info_msg "Reloading the Avahi Daemon"
56 + /usr/sbin/avahi-daemon -r
57 + evaluate_retval
58 + ;;
59 +
60 + restart)
61 + ${0} stop
62 + sleep 1
63 + ${0} start
64 + ;;
65 +
66 + status)
67 + statusproc avahi-daemon
68 + statusproc avahi-dnsconfd
69 + ;;
70 +
71 + *)
72 + echo "Usage: ${0} {start|stop|reload|restart|status}"
73 + exit 1
74 + ;;
75 +esac
76 +
77 +# End /etc/init.d/avahi
0 78 new file mode 100644
@@ -0,0 +1,68 @@
1 +#!/bin/sh
2 +
3 +########################################################################
4 +# Begin bind
5 +#
6 +# Description : Start Berkeley Internet Name Daemon
7 +#
8 +# Author : DJ Lucas - dj@linuxfromscratch.org
9 +# Bruce Dubbs - bdubbs@linuxfromscratch.org
10 +#
11 +# Version : LFS 7.0
12 +#
13 +########################################################################
14 +
15 +### BEGIN INIT INFO
16 +# Provides: bind
17 +# Required-Start: $time $network
18 +# Should-Start:
19 +# Required-Stop: $network
20 +# Should-Stop: $remote_fs
21 +# Default-Start: 3 4 5
22 +# Default-Stop: 0 1 2 6
23 +# Short-Description: DNS Daemon
24 +# Description: Provides a local DNS daemon in a chroot environment
25 +# X-LFS-Provided-By: BLFS / LFS 7.0
26 +### END INIT INFO
27 +
28 +. /lib/lsb/init-functions
29 +
30 +#$LastChangedBy: randy $
31 +#$Date: 2013-02-12 10:13:34 -0600 (Tue, 12 Feb 2013) $
32 +
33 +case "$1" in
34 + start)
35 + log_info_msg "Starting named..."
36 + start_daemon /usr/sbin/named -u named -t /srv/named -c /etc/named.conf
37 + evaluate_retval
38 + ;;
39 +
40 + stop)
41 + log_info_msg "Stopping named..."
42 + killproc /usr/sbin/named
43 + evaluate_retval
44 + ;;
45 +
46 + restart)
47 + $0 stop
48 + sleep 1
49 + $0 start
50 + ;;
51 +
52 + reload)
53 + log_info_msg "Reloading named..."
54 + /usr/sbin/rndc -c /etc/rndc.conf reload
55 + evaluate_retval
56 + ;;
57 +
58 + status)
59 + statusproc /usr/sbin/named
60 + ;;
61 +
62 + *)
63 + echo "Usage: $0 {start|stop|restart|status}"
64 + exit 1
65 + ;;
66 +esac
67 +
68 +# End /etc/init.d/bind
0 69 new file mode 100644
@@ -0,0 +1,139 @@
1 +#!/bin/sh
2 +########################################################################
3 +# Begin bluetooth
4 +#
5 +# Description : BlueZ Boot Script
6 +#
7 +# Authors : Armin K. <krejzi@email.com>
8 +#
9 +# Version : BLFS SVN
10 +#
11 +# Notes : Configurable through /etc/sysconfig/bluetooth
12 +# : Rewritten May 29, 2014 for bluez-5 by
13 +# Bruce Dubbs <bdubbs@linuxfromscratch.org>
14 +#
15 +########################################################################
16 +
17 +### BEGIN INIT INFO
18 +# Provides: bluetooth
19 +# Required-Start: $local_fs $syslog dbus
20 +# Required-Stop: $local_fs $syslog
21 +# Default-Start: 2 3 4 5
22 +# Default-Stop: 0 1 6
23 +# Short-Description: Starts bluetooth daemons
24 +# X-LFS-Provided-By: BLFS
25 +### END INIT INFO
26 +
27 +. /lib/lsb/init-functions
28 +
29 +if [ -f "/etc/sysconfig/bluetooth" ]; then
30 + . /etc/sysconfig/bluetooth
31 +fi
32 +
33 +BLUETOOTH=/usr/sbin/bluetoothd
34 +SDPTOOL=/usr/bin/sdptool
35 +HCIATTACH=/usr/bin/hciattach
36 +RFCOMM=/usr/bin/rfcomm
37 +
38 +UART_CONF=/etc/bluetooth/uart.conf
39 +RFCOMM_CONF=/etc/bluetooth/rfcomm.conf
40 +
41 +start_hci_dev()
42 +{
43 + for dev in ${ACTIVE_HCI_DEVICES_ON_BOOT} ; do
44 + hciconfig $dev up > /dev/null 2>&1
45 + done
46 +}
47 +
48 +run_sdptool()
49 +{
50 + # Declaring IFS local in this function, removes the need to
51 + # save/restore it
52 + local IFS option
53 +
54 + test -x $SDPTOOL || return 1
55 +
56 + IFS=";"
57 + for option in ${SDPTOOL_OPTIONS}; do
58 + IFS=" "
59 + $SDPTOOL $option > /dev/null 2>&1
60 + done
61 +}
62 +
63 +start_uarts()
64 +{
65 + [ -x $HCIATTACH ] && [ -f $UART_CONF ] || return
66 +
67 + grep -v '^[[:space:]]*(#|$)' $UART_CONF | while read i; do
68 + $HCIATTACH $i > /dev/null 2>&1
69 + done
70 +}
71 +
72 +stop_uarts()
73 +{
74 + [ -x $HCIATTACH ] || return
75 + killall $HCIATTACH > /dev/null 2>&1
76 +}
77 +
78 +start_rfcomm()
79 +{
80 + [ -x $RFCOMM ] && [ -f $RFCOMM_CONF ] || return
81 +
82 + $RFCOMM -f $RFCOMM_CONF bind all > /dev/null 2>&1 || :
83 +}
84 +
85 +stop_rfcomm()
86 +{
87 + [ -x $RFCOMM ] || return
88 + $RFCOMM unbind all > /dev/null 2>&1
89 +}
90 +
91 +case "${1}" in
92 + start)
93 + log_info_msg "Starting Bluetooth daemon bluetoothd..."
94 + pidlist=`pidofproc $BLUETOOTH`
95 +
96 + if [ "${?}" = "0" ]; then
97 + log_info_msg2 " Already running"
98 + log_success_msg2
99 + exit 0;
100 + fi
101 +
102 + # Start as background process and assume OK
103 + $BLUETOOTH &
104 + log_success_msg2
105 +
106 + start_hci_dev
107 + run_sdptool
108 + start_uarts
109 + start_rfcomm
110 + ;;
111 +
112 + stop)
113 + stop_rfcomm
114 + stop_uarts
115 +
116 + log_info_msg "Stopping Bluetooth daemon bluetoothd..."
117 + killproc $BLUETOOTH
118 + evaluate_retval
119 + ;;
120 +
121 + restart)
122 + ${0} stop
123 + sleep 1
124 + ${0} start
125 + ;;
126 +
127 + status)
128 + statusproc $BLUETOOTH
129 + ;;
130 +
131 + *)
132 + echo "Usage: ${0} {start|stop|restart|status}"
133 + exit 1
134 + ;;
135 +esac
136 +
137 +exit 0
138 +
139 +# End bluetooth
0 140 new file mode 100644
@@ -0,0 +1,66 @@
1 +#!/bin/sh
2 +########################################################################
3 +# Begin cups
4 +#
5 +# Description : Start cups daemon
6 +#
7 +# Author : Bruce Dubbs - bdubbs@linuxfromscratch.org
8 +#
9 +# Version : LFS 7.0
10 +#
11 +########################################################################
12 +
13 +### BEGIN INIT INFO
14 +# Provides: cups
15 +# Required-Start: $network
16 +# Should-Start: $remote_fs haldaemon
17 +# Required-Stop: $network
18 +# Should-Stop: haldaemon $remote_fs
19 +# Default-Start: 3 4 5
20 +# Default-Stop: 0 1 2 6
21 +# Short-Description: Starts cups print daemon.
22 +# Description: Starts cups print daemon.
23 +# X-LFS-Provided-By: BLFS / LFS 7.0
24 +### END INIT INFO
25 +
26 +. /lib/lsb/init-functions
27 +
28 +#$LastChangedBy: dj $
29 +#$Date: 2011-12-05 01:38:40 -0600 (Mon, 05 Dec 2011) $
30 +
31 +case $1 in
32 + start)
33 + log_info_msg "Starting CUPS Printserver..."
34 + start_daemon /usr/sbin/cupsd
35 + evaluate_retval
36 + ;;
37 +
38 + stop)
39 + log_info_msg "Stopping CUPS Printserver..."
40 + killproc /usr/sbin/cupsd
41 + evaluate_retval
42 + ;;
43 +
44 + reload)
45 + log_info_msg "Reloading CUPS Printserver..."
46 + killproc /usr/sbin/cupsd -HUP
47 + evaluate_retval
48 + ;;
49 +
50 + restart)
51 + $0 stop
52 + sleep 1
53 + $0 start
54 + ;;
55 +
56 + status)
57 + statusproc /usr/sbin/cupsd
58 + ;;
59 +
60 + *)
61 + echo "Usage: $0 {start|stop|reload|restart|status}"
62 + exit 1
63 + ;;
64 +esac
65 +
66 +# End /etc/init.d/cups
0 67 new file mode 100644
@@ -0,0 +1,66 @@
1 +#!/bin/sh
2 +########################################################################
3 +# Begin dbus
4 +#
5 +# Description : Start dbus daemon
6 +#
7 +# Author : Bruce Dubbs - bdubbs@linuxfromscratch.org
8 +#
9 +# Version : LFS 7.0
10 +#
11 +########################################################################
12 +
13 +### BEGIN INIT INFO
14 +# Provides: dbus
15 +# Required-Start: cleanfs
16 +# Should-Start: $remote_fs
17 +# Required-Stop: sendsignals
18 +# Should-Stop:
19 +# Default-Start: 2 3 4 5
20 +# Default-Stop: 0 1 6
21 +# Short-Description: Starts message bus.
22 +# Description: Starts message bus.
23 +# X-LFS-Provided-By: LFS
24 +### END INIT INFO
25 +
26 +. /lib/lsb/init-functions
27 +
28 +#$LastChangedBy: bdubbs $
29 +#$Date: 2012-05-02 15:39:55 -0500 (Wed, 02 May 2012) $
30 +
31 +pidfile=/run/dbus/pid
32 +socket=/run/dbus/system_bus_socket
33 +
34 +case "$1" in
35 + start)
36 + log_info_msg "Starting the D-Bus Messagebus Daemon..."
37 + mkdir -p /run/dbus
38 + /usr/bin/dbus-uuidgen --ensure
39 + start_daemon /usr/bin/dbus-daemon --system
40 + evaluate_retval
41 + ;;
42 +
43 + stop)
44 + log_info_msg "Stopping the D-Bus Messagebus Daemon..."
45 + killproc /usr/bin/dbus-daemon
46 + evaluate_retval
47 + rm -f $socket $pidfile
48 + ;;
49 +
50 + restart)
51 + $0 stop
52 + sleep 1
53 + $0 start
54 + ;;
55 +
56 + status)
57 + statusproc /usr/bin/dbus-daemon
58 + ;;
59 +
60 + *)
61 + echo "Usage: $0 {start|stop|restart|status}"
62 + exit 1
63 + ;;
64 +esac
65 +
66 +# End /etc/init.d/dbus
0 67 new file mode 100644
@@ -0,0 +1,74 @@
1 +#!/bin/sh
2 +########################################################################
3 +# Begin dhcpd
4 +#
5 +# Description : ISC DHCP Server Boot Script.
6 +#
7 +# Author :
8 +#
9 +# Version : LFS 7.0
10 +#
11 +########################################################################
12 +
13 +### BEGIN INIT INFO
14 +# Provides: dhcpd
15 +# Required-Start: network
16 +# Required-Stop: sendsignals
17 +# Default-Start: 2 3 4 5
18 +# Default-Stop: 0 2 6
19 +# Short-Description: Starts the ISC DHCP Server.
20 +# X-LFS-Provided-By: BLFS
21 +### END INIT INFO
22 +
23 +. /lib/lsb/init-functions
24 +
25 +#$LastChangedBy: krejzi $
26 +#$Date: 2013-06-11 10:49:17 -0500 (Tue, 11 Jun 2013) $
27 +
28 +INTERFACES=""
29 +OPTIONS=""
30 +
31 +if [ -f "/etc/sysconfig/dhcpd" ]; then
32 + . /etc/sysconfig/dhcpd
33 +fi
34 +
35 +case "$1" in
36 + start)
37 +
38 + if [ -z "$INTERFACES" ]; then
39 + MSG="You need to configure dhcp server in"
40 + log_warning_msg "$MSG /etc/sysconfig/dhcpd"
41 + exit 0
42 + fi
43 +
44 + log_info_msg "Starting ISC DHCP Server dhcpd"
45 + start_daemon /usr/sbin/dhcpd -q $INTERFACES $OPTIONS
46 + evaluate_retval
47 +
48 + ;;
49 +
50 + stop)
51 +
52 + log_info_msg "Stopping ISC DHCP Server dhcpd"
53 + killproc /usr/sbin/dhcpd
54 + evaluate_retval
55 +
56 + ;;
57 +
58 + restart)
59 + $0 stop
60 + sleep 1
61 + $0 start
62 + ;;
63 +
64 + status)
65 + statusproc /usr/sbin/dhcpd
66 + ;;
67 +
68 + *)
69 + echo "Usage: $0 {start|stop|restart|status}"
70 + exit 1
71 + ;;
72 +esac
73 +
74 +# End /etc/init.d/dhcpd
0 75 new file mode 100644
@@ -0,0 +1,64 @@
1 +#!/bin/sh
2 +########################################################################
3 +# Begin dovecot
4 +#
5 +# Description : Dovecot server init script
6 +#
7 +# Author : Igor Živković <contact@igor-zivkovic.from.hr>
8 +#
9 +# Version : BLFS SVN
10 +#
11 +########################################################################
12 +
13 +
14 +### BEGIN INIT INFO
15 +# Provides: dovecot
16 +# Required-Start: $network $remote_fs $syslog
17 +# Required-Stop: $network $remote_fs $syslog
18 +# Default-Start: 2 3 4 5
19 +# Default-Stop: 0 1 6
20 +# Short-Description: Dovecot init script
21 +# X-LFS-Provided-By: BLFS
22 +### END INIT INFO
23 +
24 +. /lib/lsb/init-functions
25 +
26 +#$LastChangedBy$
27 +#$Date$
28 +
29 +case "$1" in
30 + start)
31 + log_info_msg "Starting Dovecot server..."
32 + start_daemon /usr/sbin/dovecot
33 + evaluate_retval
34 + ;;
35 +
36 + stop)
37 + log_info_msg "Stopping Dovecot server..."
38 + killproc -p "/run/dovecot/master.pid" /usr/sbin/dovecot
39 + evaluate_retval
40 + ;;
41 +
42 + reload)
43 + log_info_msg "Reloading Dovecot server..."
44 + killproc -p "/run/dovecot/master.pid" /usr/sbin/dovecot -HUP
45 + evaluate_retval
46 + ;;
47 +
48 + restart)
49 + $0 stop
50 + sleep 1
51 + $0 start
52 + ;;
53 +
54 + status)
55 + statusproc /usr/sbin/dovecot
56 + ;;
57 +
58 + *)
59 + echo "Usage: $0 {start|stop|reload|restart|status}"
60 + exit 1
61 + ;;
62 +esac
63 +
64 +# End dovecot
0 65 new file mode 100644
@@ -0,0 +1,60 @@
1 +#!/bin/sh
2 +########################################################################
3 +# Begin exim
4 +#
5 +# Description : Starts Postfix Mail Trasfer Agent
6 +#
7 +# Author : Bruce Dubbs - bdubbs@linuxfromscratch.org
8 +#
9 +# Version : LFS 7.0
10 +#
11 +########################################################################
12 +
13 +### BEGIN INIT INFO
14 +# Provides: exim
15 +# Required-Start: $syslog $local_fs $network
16 +# Should-Start: $remote_fs openldap mysql postgresql saslauthd
17 +# Required-Stop: $network
18 +# Should-Stop: $remote_fs openldap mysql postgresql saslauthd
19 +# Default-Start: 3 4 5
20 +# Default-Stop: 0 1 2 6
21 +# Short-Description: Exim MTA
22 +# Description: Controls the Exim Mail Transfer Agent
23 +# X-LFS-Provided-By: BLFS / LFS 7.0
24 +### END INIT INFO
25 +
26 +. /lib/lsb/init-functions
27 +
28 +#$LastChangedBy: bdubbs $
29 +#$Date: 2012-05-06 23:36:06 -0500 (Sun, 06 May 2012) $
30 +
31 +case "$1" in
32 + start)
33 + log_info_msg "Starting Exim..."
34 + start_daemon /usr/sbin/exim -bd -q15m
35 + evaluate_retval
36 + ;;
37 +
38 + stop)
39 + log_info_msg "Stopping exim..."
40 + killproc /usr/sbin/exim
41 + evaluate_retval
42 + ;;
43 +
44 + status)
45 + statusproc /usr/sbin/exim
46 + ;;
47 +
48 + restart)
49 + $0 stop
50 + sleep 1
51 + $0 start
52 + ;;
53 +
54 + *)
55 + echo "Usage: $0 {start|stop|status|restart}"
56 + exit 1
57 + ;;
58 +esac
59 +
60 +# End /etc/init.d/exim
0 61 new file mode 100644
@@ -0,0 +1,53 @@
1 +#!/bin/sh
2 +# Begin /etc/init.d/fcron
3 +
4 +### BEGIN INIT INFO
5 +# Provides: fcron
6 +# Required-Start: $local_fs
7 +# Should-Start: $remote_fs $syslog
8 +# Required-Stop: $local_fs
9 +# Should-Stop: $remote_fs $syslog
10 +# Default-Start: 3 4 5
11 +# Default-Stop: 0 1 2 6
12 +# Short-Description: Starts fcron.
13 +# Description: Starts fcron daemon.
14 +# X-LFS-Provided-By: BLFS
15 +### END INIT INFO
16 +
17 +. /lib/lsb/init-functions
18 +
19 +BIN_FILE="/usr/sbin/fcron"
20 +
21 +#$LastChangedBy: bdubbs $
22 +#$Date: 2011-12-05 20:37:16 -0600 (Mon, 05 Dec 2011) $
23 +
24 +case "$1" in
25 + start)
26 + log_info_msg "Starting fcron..."
27 + start_daemon ${BIN_FILE}
28 + evaluate_retval
29 + ;;
30 +
31 + stop)
32 + log_info_msg "Stopping fcron..."
33 + killproc ${BIN_FILE}
34 + evaluate_retval
35 + ;;
36 +
37 + restart)
38 + $0 stop
39 + sleep 1
40 + $0 start
41 + ;;
42 +
43 + status)
44 + statusproc ${BIN_FILE}
45 + ;;
46 +
47 + *)
48 + echo "Usage: $0 {start|stop|restart|status}"
49 + exit 1
50 + ;;
51 +esac
52 +
53 +# End /etc/init.d/fcron
0 54 new file mode 100644
@@ -0,0 +1,58 @@
1 +#!/bin/sh
2 +########################################################################
3 +# Begin gdm
4 +#
5 +# Description : GDM Boot Script
6 +#
7 +# Authors : Armin K. <krejzi@email.com>
8 +#
9 +# Version : BLFS SVN
10 +#
11 +########################################################################
12 +
13 +### BEGIN INIT INFO
14 +# Provides: gdm
15 +# Required-Start: $local_fs $remote_fs
16 +# Required-Stop: $local_fs $remote_fs
17 +# Default-Start: 2 3 4 5
18 +# Default-Stop: 0 1 6
19 +# Short-Description: GNOME Display Manager
20 +# X-LFS-Provided-By: BLFS
21 +### END INIT INFO
22 +
23 +. /lib/lsb/init-functions
24 +
25 +GDM_BINARY=/usr/sbin/gdm
26 +
27 +case "${1}" in
28 + start)
29 + log_info_msg "Starting GNOME Display Manager GDM"
30 + start_daemon ${GDM_BINARY}
31 + evaluate_retval
32 + ;;
33 +
34 + stop)
35 + log_info_msg "Stopping GNOME Display Manager GDM"
36 + killproc ${GDM_BINARY}
37 + evaluate_retval
38 + ;;
39 +
40 + restart)
41 + ${0} stop
42 + sleep 1
43 + ${0} start
44 + ;;
45 +
46 + status)
47 + statusproc ${GDM_BINARY}
48 + ;;
49 +
50 + *)
51 + echo "Usage: ${0} {start|stop|restart|status}"
52 + exit 1
53 + ;;
54 +esac
55 +
56 +exit 0
57 +
58 +# End gdm
0 59 new file mode 100644
@@ -0,0 +1,83 @@
1 +#!/bin/sh
2 +#######################################################################
3 +# Begin /etc/init.d/gpm
4 +#
5 +# Description : Start GPM Console Mouse Service
6 +#
7 +# Author : DJ Lucas - dj@linuxfromscratch.org
8 +#
9 +# Version : LFS 7.0
10 +#
11 +########################################################################
12 +
13 +### BEGIN INIT INFO
14 +# Provides: gpm
15 +# Required-Start: $network $local_fs
16 +# Should-Start:
17 +# Required-Stop: $local_fs $network
18 +# Should-Stop:
19 +# Default-Start: 3 4 5
20 +# Default-Stop: 0 1 2 6
21 +# Short-Description: Starts and stops the GPM console mouse service.
22 +# Description: Starts and stops the GPM console mouse service.
23 +# X-LFS-Provided-By: BLFS / LFS 7.0
24 +### END INIT INFO
25 +
26 +. /lib/lsb/init-functions
27 +
28 +#$LastChangedBy: bdubbs $
29 +#$Date: 2012-03-23 21:43:45 -0500 (Fri, 23 Mar 2012) $
30 +
31 +pidfile="/run/gpm.pid"
32 +
33 +[ -f /etc/sysconfig/mouse ] && source /etc/sysconfig/mouse
34 +
35 +case "${1}" in
36 + start)
37 + log_info_msg "Starting GPM console mouse service..."
38 + if [ "${MDEVICE}" = "" -o "${PROTOCOL}" = "" ]; then
39 + log_info_msg2 "invalid configuration"
40 + log_failure_msg
41 + exit 2
42 + fi
43 + start_daemon /usr/sbin/gpm -m "${MDEVICE}" -t "${PROTOCOL}" ${GPMOPTS}
44 + evaluate_retval
45 + ;;
46 +
47 + stop)
48 + log_info_msg "Stopping GPM console mouse service..."
49 + killproc /usr/sbin/gpm
50 + evaluate_retval
51 + ;;
52 +
53 + force-reload)
54 + # gpm does not honor SIGHUP, restart if running
55 + kill -0 `pidofproc -p "${pidfile}" /usr/sbin/gpm` 2>/dev/null
56 + if [ "${?}" = "0" ]; then
57 + ${0} restart
58 + else
59 + log_info_msg "Force reloading GPM console mouse service..."
60 + log_info_msg2 "not running"
61 + log_failure_msg
62 + fi
63 + ;;
64 +
65 + restart)
66 + ${0} stop
67 + sleep 1
68 + ${0} start
69 + ;;
70 +
71 + status)
72 + statusproc /usr/sbin/gpm
73 + ;;
74 +
75 + *)
76 + echo "Usage: ${0} {start|stop|force-reload|restart|status}"
77 + exit 1
78 + ;;
79 +esac
80 +
81 +exit 0
82 +
83 +# End /etc/init.d/gpm
0 84 new file mode 100644
@@ -0,0 +1,55 @@
1 +#!/bin/sh
2 +########################################################################
3 +# Begin haveged
4 +#
5 +# Description : Start haveged daemon
6 +#
7 +# Author : Bruce Dubbs - bdubbs@linuxfromscratch.org
8 +#
9 +# Version : LFS 7.5
10 +#
11 +########################################################################
12 +
13 +### BEGIN INIT INFO
14 +# Provides: haveged
15 +# Required-Start:
16 +# Should-Start:
17 +# Required-Stop:
18 +# Should-Stop:
19 +# Default-Start: 3 4 5
20 +# Default-Stop: 0 1 2 6
21 +# Short-Description: haveged daemon
22 +# Description: Provide increased entropy to /dev/random
23 +# X-LFS-Provided-By: BLFS / LFS 7.6
24 +### END INIT INFO
25 +
26 +. /lib/lsb/init-functions
27 +
28 +#$LastChangedBy: bdubbs $
29 +#$Date: 2012-05-09 15:19:23 -0500 (Wed, 09 May 2012) $
30 +
31 +case "$1" in
32 + start)
33 + log_info_msg "Starting haveged..."
34 + start_daemon /usr/sbin/haveged
35 + evaluate_retval
36 + ;;
37 +
38 + stop)
39 + log_info_msg "Stopping haveged..."
40 + killproc /usr/sbin/haveged
41 + evaluate_retval
42 + ;;
43 +
44 + status)
45 + statusproc /usr/sbin/haveged
46 + ;;
47 +
48 + *)
49 + echo "Usage: $0 {start|stop|status}"
50 + exit 1
51 + ;;
52 +esac
53 +
54 +# End haveged
55 +
0 56 new file mode 100644
@@ -0,0 +1,62 @@
1 +#!/bin/sh
2 +#######################################################################
3 +# Begin /etc/init.d/httpd
4 +#
5 +# Description : Start Apache Web Server
6 +#
7 +# Author : DJ Lucas - dj@linuxfromscratch.org
8 +# Bruce Dubbs - bdubbs@linuxfromscratch.org
9 +#
10 +# Version : LFS 7.0
11 +#
12 +########################################################################
13 +
14 +### BEGIN INIT INFO
15 +# Provides: httpd
16 +# Required-Start: $syslog $local_fs $network
17 +# Should-Start: $remote_fs
18 +# Required-Stop: $network
19 +# Should-Stop: $remote_fs
20 +# Default-Start: 3 4 5
21 +# Default-Stop: 0 1 2 6
22 +# Short-Description: Apache HTTP Server
23 +# Description: Controls the Apache HTTP Daemon
24 +# X-LFS-Provided-By: BLFS / LFS 7.0
25 +### END INIT INFO
26 +
27 +. /lib/lsb/init-functions
28 +
29 +#$LastChangedBy: krejzi $
30 +#$Date: 2013-01-26 22:28:34 -0600 (Sat, 26 Jan 2013) $
31 +
32 +case "$1" in
33 + start)
34 + log_info_msg "Starting Apache HTTP daemon..."
35 + mkdir -p /var/run/httpd
36 + start_daemon /usr/sbin/apachectl -k start
37 + evaluate_retval
38 + ;;
39 +
40 + stop)
41 + log_info_msg "Stopping Apache HTTP daemon..."
42 + start_daemon /usr/sbin/apachectl -k stop
43 + evaluate_retval
44 + ;;
45 +
46 + restart)
47 + log_info_msg "Restarting Apache HTTP daemon..."
48 + start_daemon /usr/sbin/apachectl -k restart
49 + evaluate_retval
50 + ;;
51 +
52 + status)
53 + statusproc /usr/sbin/httpd
54 + ;;
55 +
56 + *)
57 + echo "Usage: $0 {start|stop|restart|status}"
58 + exit 1
59 + ;;
60 +esac
61 +
62 +# End /etc/init.d/httpd
0 63 new file mode 100644
@@ -0,0 +1,84 @@
1 +#!/bin/sh
2 +########################################################################
3 +# Begin iptables
4 +#
5 +# Description : Start iptables
6 +#
7 +# Authors : Ken Moffat - ken@linuxfromscratch.org
8 +# Bruce Dubbs - bdubbs@linuxfromscratch.org
9 +#
10 +# Version : LFS 7.0
11 +#
12 +########################################################################
13 +
14 +### BEGIN INIT INFO
15 +# Provides: iptables
16 +# Required-Start:
17 +# Should-Start:
18 +# Required-Stop: $local_fs
19 +# Should-Stop:
20 +# Default-Start: 3 4 5
21 +# Default-Stop:
22 +# Short-Description: Loads iptables rules.
23 +# Description: Iptables provides firewall for Linux systems.
24 +# X-LFS-Provided-By: BLFS / LFS 7.0
25 +### END INIT INFO
26 +
27 +. /lib/lsb/init-functions
28 +
29 +#$LastChangedBy: krejzi $
30 +#$Date: 2013-06-11 11:01:46 -0500 (Tue, 11 Jun 2013) $
31 +
32 +case "$1" in
33 + start)
34 + if [ -x /etc/rc.d/rc.iptables ]; then
35 + log_info_msg "Starting iptables..."
36 + /etc/rc.d/rc.iptables
37 + evaluate_retval
38 + fi
39 + ;;
40 +
41 + lock)
42 + log_info_msg "Locking system iptables firewall..."
43 + /sbin/iptables --policy INPUT DROP
44 + /sbin/iptables --policy OUTPUT DROP
45 + /sbin/iptables --policy FORWARD DROP
46 + /sbin/iptables --flush
47 + /sbin/iptables -t nat --flush
48 + /sbin/iptables -t mangle --flush
49 + /sbin/iptables --delete-chain
50 + /sbin/iptables -t nat --delete-chain
51 + /sbin/iptables -t mangle --delete-chain
52 + /sbin/iptables -A INPUT -i lo -j ACCEPT
53 + /sbin/iptables -A OUTPUT -o lo -j ACCEPT
54 + evaluate_retval
55 + ;;
56 +
57 + clear)
58 + log_info_msg "Clearing system iptables iptables..."
59 + /sbin/iptables --policy INPUT ACCEPT
60 + /sbin/iptables --policy OUTPUT ACCEPT
61 + /sbin/iptables --policy FORWARD ACCEPT
62 + /sbin/iptables --flush
63 + /sbin/iptables -t nat --flush
64 + /sbin/iptables -t mangle --flush
65 + /sbin/iptables --delete-chain
66 + /sbin/iptables -t nat --delete-chain
67 + /sbin/iptables -t mangle --delete-chain
68 + evaluate_retval
69 + ;;
70 +
71 + status)
72 + /sbin/iptables --numeric --list
73 + /sbin/iptables -t nat --numeric --list
74 + /sbin/iptables -t mangle --numeric --list
75 + ;;
76 +
77 + *)
78 + echo "Usage: $0 {start|clear|lock|status}"
79 + exit 1
80 + ;;
81 +esac
82 +
83 +# End /etc/init.d/iptables
84 +
0 85 new file mode 100644
@@ -0,0 +1,70 @@
1 +#!/bin/sh
2 +########################################################################
3 +# Begin krb5
4 +#
5 +# Description : MIT Kerberos Boot Script.
6 +#
7 +# Authors : Armin K. <krejzi@email.com>
8 +#
9 +# Version : BLFS SVN
10 +#
11 +# Notes :
12 +#
13 +########################################################################
14 +
15 +### BEGIN INIT INFO
16 +# Provides: krb5
17 +# Required-Start: $local_fs $remote_fs $network $syslog
18 +# Required-Stop: $local_fs $remote_fs $network $syslog
19 +# Default-Start: 2 3 4 5
20 +# Default-Stop: 0 1 6
21 +# Short-Description: MIT Kerberos KDC and Admin Server
22 +# Description: Starts, stops or restarts the MIT Kerberos KDC,
23 +# Admin Server and Database Propagation Server.
24 +# X-LFS-Provided-By: BLFS
25 +### END INIT INFO
26 +
27 +. /lib/lsb/init-functions
28 +
29 +case "${1}" in
30 + start)
31 + log_info_msg "Starting Kerberos KDC krb5kdc"
32 + start_daemon /usr/sbin/krb5kdc
33 + log_info_msg "Starting Kerberos administrative server kadmind"
34 + start_daemon /usr/sbin/kadmind
35 + log_info_msg "Starting Kerberos database propagation server kpropd"
36 + start_daemon /usr/sbin/kpropd -S
37 + evaluate_retval
38 + ;;
39 +
40 + stop)
41 + log_info_msg "Stopping Kerberos database propagation server kpropd"
42 + killproc /usr/sbin/kpropd
43 + log_info_msg "Stopping Kerberos administrative server kadmind"
44 + killproc /usr/sbin/kadmind
45 + log_info_msg "Stopping Kerberos KDC krb5kdc"
46 + killproc /usr/sbin/krb5kdc
47 + evaluate_retval
48 + ;;
49 +
50 + restart)
51 + ${0} stop
52 + sleep 1
53 + ${0} start
54 + ;;
55 +
56 + status)
57 + statusproc /usr/sbin/krb5kdc
58 + statusproc /usr/sbin/kadmind
59 + statusproc /usr/sbin/kpropd
60 + ;;
61 +
62 + *)
63 + echo "Usage: ${0} {start|stop|restart|status}"
64 + exit 1
65 + ;;
66 +esac
67 +
68 +exit 0
69 +
70 +# End krb5
0 71 new file mode 100644
@@ -0,0 +1,54 @@
1 +#!/bin/sh
2 +# Begin /etc/rc.d/init.d/lightdm
3 +
4 +### BEGIN INIT INFO
5 +# Provides: lightdm
6 +# Required-Start: $local_fs
7 +# Should-Start: $remote_fs $syslog
8 +# Required-Stop: $local_fs
9 +# Should-Stop: $remote_fs $syslog
10 +# Default-Start: 5
11 +# Default-Stop: 0 1 2 3 4 6
12 +# Short-Description: Starts lightdm.
13 +# Description: Starts lightdm daemon.
14 +# X-LFS-Provided-By: BLFS
15 +### END INIT INFO
16 +
17 +. /lib/lsb/init-functions
18 +[ -e /opt/xorg/bin/X ] && . /etc/profile
19 +
20 +BIN_FILE="/usr/bin/lightdm"
21 +
22 +#$LastChangedBy: bdubbs $
23 +#$Date: 2018-01-05 12:17:22 -0600 (Fri, 05 Jan 2018) $
24 +
25 +case $1 in
26 + start)
27 + log_info_msg "Starting lightdm..."
28 + start_daemon $BIN_FILE &
29 + evaluate_retval
30 + ;;
31 +
32 + stop)
33 + log_info_msg "Stopping lightdm..."
34 + killproc $BIN_FILE
35 + evaluate_retval
36 + ;;
37 +
38 + restart)
39 + $0 stop
40 + sleep 2
41 + $0 start
42 + ;;
43 +
44 + status)
45 + statusproc ${BIN_FILE}
46 + ;;
47 +
48 + *)
49 + echo "usage: $0 [start|stop|restart|status]"
50 + exit 1
51 + ;;
52 +esac
53 +
54 +# End /etc/rc.d/init.d/lightdm
0 55 new file mode 100644
@@ -0,0 +1,67 @@
1 +#!/bin/sh
2 +########################################################################
3 +# Begin lprng
4 +#
5 +# Description : Start lpd daemon
6 +#
7 +# Author : Bruce Dubbs - bdubbs@linuxfromscratch.org
8 +#
9 +# Version : LFS 7.0
10 +#
11 +########################################################################
12 +
13 +### BEGIN INIT INFO
14 +# Provides: lprng
15 +# Required-Start: $local_fs
16 +# Should-Start: $remote_fs
17 +# Required-Stop: $local_fs
18 +# Should-Stop: $remote_fs
19 +# Default-Start: 3 4 5
20 +# Default-Stop: 0 1 2 6
21 +# Short-Description: Starts lpd daemon.
22 +# Description: Starts an implementation of the Berkeley LPR print
23 +# spooler functionality.
24 +# X-LFS-Provided-By: LFS
25 +### END INIT INFO
26 +
27 +. /lib/lsb/init-functions
28 +
29 +#$LastChangedBy: bdubbs $
30 +#$Date: 2011-12-05 20:37:16 -0600 (Mon, 05 Dec 2011) $
31 +
32 +case "$1" in
33 + start)
34 + log_info_msg "Starting lpd..."
35 + start_daemon /usr/sbin/lpd
36 + evaluate_retval
37 + ;;
38 +
39 + stop)
40 + log_info_msg "Stopping lpd..."
41 + killproc /usr/sbin/lpd
42 + evaluate_retval
43 + ;;
44 +
45 + reload)
46 + boot_mesg "Reloading lpd..."
47 + killproc /usr/sbin/lpd -HUP
48 + evaluate_retval
49 + ;;
50 +
51 + restart)
52 + $0 stop
53 + sleep 1
54 + $0 start
55 + ;;
56 +
57 + status)
58 + statusproc /usr/sbin/lpd
59 + ;;
60 +
61 + *)
62 + echo "Usage: $0 {start|stop|reload|restart|status}"
63 + exit 1
64 + ;;
65 +esac
66 +
67 +# End /etc/init.d/lprng
0 68 new file mode 100644
@@ -0,0 +1,53 @@
1 +#!/bin/sh
2 +# Begin /etc/rc.d/init.d/lxdm
3 +
4 +### BEGIN INIT INFO
5 +# Provides: lxdm
6 +# Required-Start: $local_fs
7 +# Should-Start: $remote_fs $syslog
8 +# Required-Stop: $local_fs
9 +# Should-Stop: $remote_fs $syslog
10 +# Default-Start: 5
11 +# Default-Stop: 0 1 2 3 4 6
12 +# Short-Description: Starts lxdm.
13 +# Description: Starts lxdm daemon.
14 +# X-LFS-Provided-By: BLFS
15 +### END INIT INFO
16 +
17 +. /lib/lsb/init-functions
18 +
19 +BIN_FILE="/usr/sbin/lxdm"
20 +
21 +#$LastChangedBy: ken $
22 +#$Date: 2014-09-11 17:27:58 -0500 (Thu, 11 Sep 2014) $
23 +
24 +case $1 in
25 + start)
26 + log_info_msg "Starting LXDM..."
27 + start_daemon $BIN_FILE -d
28 + evaluate_retval
29 + ;;
30 +
31 + stop)
32 + log_info_msg "Stopping LXDM..."
33 + killproc $BIN_FILE
34 + evaluate_retval
35 + ;;
36 +
37 + restart)
38 + $0 stop
39 + sleep 2
40 + $0 start
41 + ;;
42 +
43 + status)
44 + statusproc ${BIN_FILE}
45 + ;;
46 +
47 + *)
48 + echo "usage: $0 [start|stop|restart|status]"
49 + exit 1
50 + ;;
51 +esac
52 +
53 +# End /etc/rc.d/init.d/lxdm
0 54 new file mode 100644
@@ -0,0 +1,86 @@
1 +#!/bin/sh
2 +########################################################################
3 +# Begin /etc/init.d/mysql
4 +#
5 +# Description : Start MysSQL Server
6 +#
7 +# Author : Bruce Dubbs - bdubbs@linuxfromscratch.org
8 +#
9 +# Version : LFS 7.0
10 +#
11 +########################################################################
12 +
13 +### BEGIN INIT INFO
14 +# Provides: mysql
15 +# Required-Start: $network
16 +# Should-Start: $remote_fs
17 +# Required-Stop: $network
18 +# Should-Stop: $remote_fs
19 +# Default-Start: 3 4 5
20 +# Default-Stop: 0 1 2 6
21 +# Short-Description: Starts MySQL server.
22 +# Description: Starts MySQL server.
23 +# X-LFS-Provided-By: BLFS / LFS 7.0
24 +### END INIT INFO
25 +
26 +. /lib/lsb/init-functions
27 +
28 +#$LastChangedBy: igor $
29 +#$Date: 2014-10-11 03:51:32 -0500 (Sat, 11 Oct 2014) $
30 +
31 +PIDFILE=/srv/mysql/`/bin/hostname`.pid
32 +
33 +case "$1" in
34 + start)
35 + log_info_msg "Starting MySQL daemon..."
36 +
37 + # Make sure the mysql user can create a socket
38 + mkdir -p /run/mysqld
39 + chown mysql:mysql /run/mysqld
40 +
41 + if [ -f "$PIDFILE" ]; then
42 + if /bin/ps -e | grep `cat $PIDFILE` | grep mysqld >/dev/null ; then
43 + log_warning_msg "\n mysqld already running!"
44 + exit 0
45 + else
46 + rm -f "$PIDFILE"
47 + if [ -f "$PIDFILE" ]; then
48 + log_failure_msg2
49 + exit 1
50 + fi
51 + fi
52 + fi
53 +
54 + /usr/bin/mysqld_safe --user=mysql 2>&1 >/dev/null &
55 + evaluate_retval
56 + ;;
57 +
58 + stop)
59 + log_info_msg "Stopping MySQL daemon..."
60 + killproc -p ${PIDFILE} /usr/sbin/mysqld
61 + evaluate_retval
62 + ;;
63 +
64 + reload)
65 + log_info_msg "Reloading MySQL ..."
66 + killproc -p ${PIDFILE} /usr/sbin/mysqld -HUP
67 + evaluate_retval
68 + ;;
69 +
70 + restart)
71 + $0 stop
72 + sleep 1
73 + $0 start
74 + ;;
75 +
76 + status)
77 + statusproc /usr/sbin/mysqld
78 + ;;
79 +
80 + *)
81 + echo "Usage: $0 {start|stop|reload|restart|status}"
82 + exit 1
83 + ;;
84 +esac
85 +
86 +# End /etc/init.d/mysql
0 87 new file mode 100644
@@ -0,0 +1,106 @@
1 +#!/bin/sh
2 +########################################################################
3 +# Begin netfs
4 +#
5 +# Description : Mount network filesystems
6 +#
7 +# Author : Nathan Coulson - conathan@conet.dyndns.org
8 +# DJ Lucas - dj@linuxfromscratch.org
9 +#
10 +# Version : LFS 7.0
11 +#
12 +########################################################################
13 +
14 +### BEGIN INIT INFO
15 +# Provides: $remote_fs
16 +# Required-Start: $network
17 +# Should-Start: nfs-client nfs-server
18 +# Required-Stop: $network
19 +# Should-Stop: nfs-server nfs-client
20 +# Default-Start: 3 4 5
21 +# Default-Stop: 0 1 2 6
22 +# Short-Description: Mounts network volumes.
23 +# Description: Mounts anything marked as _netdev, and umounts and mounted
24 +# _netfs, smbfs, ncpfd, coda, or nfs volumes
25 +# X-LFS-Provided-By: BLFS / LFS 7.0
26 +### END INIT INFO
27 +
28 +. /lib/lsb/init-functions
29 +
30 +#$LastChangedBy: bdubbs $
31 +#$Date: 2012-04-18 16:56:10 -0500 (Wed, 18 Apr 2012) $
32 +
33 +case "$1" in
34 + start)
35 + # The following line mounts all entries in fstab that
36 + # have the _netdev option. This is required for network
37 + # filesystems to be mounted at boot time.
38 + log_info_msg "Mounting network volumes..."
39 + /bin/mount -a -O _netdev
40 + evaluate_retval
41 + ;;
42 +
43 + stop)
44 + log_info_msg "Unmounting network volumes..."
45 +
46 + # The following line obtains a list from the output of
47 + # mount for all netfs types and anything that was
48 + # mounted with the _netdev option.
49 + NETMOUNTS=`/bin/mount \
50 + | /bin/grep '_netdev\|smbfs\|ncpfs\|coda\|nfs\|cifs' \
51 + | /usr/bin/cut -d " " -f 3 | /bin/sed ':a;$!N;s/\n/ /;ta'`
52 +
53 + # Check to see if anything was listed from above
54 + # (see if anything is actually needs to be unmounted)
55 + if [ x"$NETMOUNTS" != x ]; then
56 + # There is something mounted
57 +
58 + # Try and stop processes the nice way
59 + # (probably won't work in most cases)
60 + /bin/fuser -SIGTERM -km $NETMOUNTS > /dev/null
61 +
62 + # Check and see if it found anything. If it
63 + # did, then give 3 seconds for things to exit
64 + # the nice way before killing them off.
65 + # This one will work all of the time!
66 + if [ $? = 0 ]; then
67 + /bin/sleep ${KILLDELAY:-3} # Default is 3, not minus 3
68 + /bin/fuser -km $NETMOUNTS > /dev/null
69 + fi
70 +
71 + # We now need to unmount all network filesystems.
72 + # We will do this with two umount commands to allow
73 + # for broken behavior of smbmount, and also to make
74 + # certain that netmounts without the _netdev option
75 + # will still get unmounted.
76 + /bin/umount -af -O _netdev
77 +
78 + # Save the return value
79 + NERRVAL=$?
80 +
81 + # Now catch the rest of the network filesystems
82 + # by fstype. This list can be extended later as
83 + # more network filesystems are supported by mount.
84 + /bin/umount -af -t coda,ncpfs,nfs,smbfs,nfsd,cifs
85 +
86 + if [ $? = 0 -a $NERRVAL = 0 ]; then
87 + (exit 0)
88 + else
89 + (exit 1)
90 + fi
91 +
92 + evaluate_retval
93 +
94 + else
95 + # There is nothing mounted
96 + log_success_msg2 "No network volumes mounted!"
97 + fi
98 + ;;
99 +
100 +*)
101 + echo "Usage: $0 {start|stop}"
102 + exit 1
103 + ;;
104 +esac
105 +
106 +# End /etc/init.d/netfs
0 107 new file mode 100644
@@ -0,0 +1,65 @@
1 +#!/bin/sh
2 +########################################################################
3 +# Begin networkmanager
4 +#
5 +# Description : NetworkManager Boot Script
6 +#
7 +# Authors : Armin K. <krejzi@email.com>
8 +#
9 +# Version : BLFS SVN
10 +#
11 +# Notes :
12 +#
13 +########################################################################
14 +
15 +### BEGIN INIT INFO
16 +# Provides: networkmanager
17 +# Required-Start: $remote_fs dbus udev
18 +# Required-Stop: $remote_fs dbus udev
19 +# Default-Start: 2 3 4 5
20 +# Default-Stop: 0 1 6
21 +# Short-Description: Network connection manager.
22 +# Description: Daemon for automatically switching network
23 +# connections to the best available connection.
24 +# X-LFS-Provided-By: BLFS
25 +### END INIT INFO
26 +
27 +. /lib/lsb/init-functions
28 +
29 +case "${1}" in
30 + start)
31 +
32 + if [ ! -d /var/run/NetworkManager ]; then
33 + install -d -o root -g root -m 755 /var/run/NetworkManager
34 + fi
35 +
36 + log_info_msg "Starting network connection manager NetworkManager"
37 + start_daemon /usr/sbin/NetworkManager
38 + evaluate_retval
39 + ;;
40 +
41 + stop)
42 + log_info_msg "Stopping network connection manager NetworkManager"
43 + killproc /usr/sbin/NetworkManager
44 + evaluate_retval
45 + ;;
46 +
47 + restart)
48 + ${0} stop
49 + sleep 1
50 + ${0} start
51 + ;;
52 +
53 + status)
54 + statusproc /usr/sbin/NetworkManager
55 + ;;
56 +
57 + *)
58 + echo "Usage: ${0} {start|stop|restart|status}"
59 + exit 1
60 + ;;
61 +esac
62 +
63 +exit 0
64 +
65 +# End networkmanager
0 66 new file mode 100644
@@ -0,0 +1,62 @@
1 +#!/bin/sh
2 +########################################################################
3 +# Begin nfs-client
4 +#
5 +# Description : Start statd
6 +#
7 +# Authors : Ken Moffat - ken@linuxfromscratch.org
8 +# Bruce Dubbs - bdubbs@linuxfromscratch.org
9 +# Douglas R. Reno - renodr@linuxfromscratch.org
10 +#
11 +# Version : LFS 7.0
12 +#
13 +########################################################################
14 +
15 +### BEGIN INIT INFO
16 +# Provides: nfs-client
17 +# Required-Start: rpcbind
18 +# Should-Start:
19 +# Required-Stop: rpcbind
20 +# Should-Stop:
21 +# Default-Start: 3 4 5
22 +# Default-Stop: 0 1 2 6
23 +# Short-Description: Starts statd
24 +# Description: rpc.statd provides file locking on nfs.
25 +# X-LFS-Provided-By: BLFS / LFS 7.0
26 +### END INIT INFO
27 +
28 +. /lib/lsb/init-functions
29 +
30 +#$LastChangedBy: renodr $
31 +#$Date: 2017-06-11 19:29:36 -0500 (Sun, 11 Jun 2017) $
32 +
33 +case "$1" in
34 + start)
35 + log_info_msg "Starting NFS statd..."
36 + start_daemon /sbin/rpc.statd --no-notify
37 + evaluate_retval
38 + ;;
39 +
40 + stop)
41 + log_info_msg "Stopping NFS statd..."
42 + killproc /sbin/rpc.statd
43 + evaluate_retval
44 + ;;
45 +
46 + restart)
47 + $0 stop
48 + sleep 1
49 + $0 start
50 + ;;
51 +
52 + status)
53 + statusproc /sbin/rpc.statd
54 + ;;
55 +
56 + *)
57 + echo "Usage: $0 {start|stop|restart|status}"
58 + exit 1
59 + ;;
60 +esac
61 +
62 +# End /etc/init.d/nfs-client
0 63 new file mode 100644
@@ -0,0 +1,105 @@
1 +#!/bin/sh
2 +########################################################################
3 +# Begin nfs-server
4 +#
5 +# Description : Start nfs server
6 +#
7 +# Authors : Ken Moffat - ken@linuxfromscratch.org
8 +# Bruce Dubbs - bdubbs@linuxfromscratch.org
9 +# Douglas R. Reno - renodr@linuxfromscratch.org
10 +#
11 +# Version : LFS 7.0
12 +# Version : LFS 8.1 - Remove references to rpc.rquotad
13 +#
14 +########################################################################
15 +
16 +### BEGIN INIT INFO
17 +# Provides: nfs-server
18 +# Required-Start: rpcbind
19 +# Should-Start:
20 +# Required-Stop: rpcbind
21 +# Should-Stop:
22 +# Default-Start: 3 4 5
23 +# Default-Stop: 0 1 2 6
24 +# Short-Description: Starts the nfs server
25 +# Description: Starts the nfs server and exports directories.
26 +# X-LFS-Provided-By: BLFS / LFS 7.0
27 +### END INIT INFO
28 +
29 +. /lib/lsb/init-functions
30 +
31 + #$LastChangedBy: bdubbs $
32 + #$Date: 2017-08-01 11:27:12 -0500 (Tue, 01 Aug 2017) $
33 +
34 + . /etc/sysconfig/nfs-server
35 +
36 + case "$1" in
37 + start)
38 + log_info_msg "Starting NFS statd..."
39 + start_daemon /sbin/rpc.statd --no-notify
40 + evaluate_retval
41 +
42 + log_info_msg "Starting NFS nfsd..."
43 + start_daemon /sbin/rpc.nfsd -p $PORT $PROCESSES
44 + evaluate_retval
45 +
46 + log_info_msg "Starting NFS mountd..."
47 + start_daemon /sbin/rpc.mountd
48 + evaluate_retval
49 +
50 + # Make certain that the list is refreshed on a restart.
51 + log_info_msg "Exporting NFS Filesystems..."
52 + /sbin/exportfs -ra 2>&1 > /dev/null
53 + evaluate_retval
54 + ;;
55 +
56 + stop)
57 + log_info_msg "Removing NFS Exported Filesystems..."
58 + /sbin/exportfs -au 2>&1 > /dev/null
59 + evaluate_retval
60 +
61 + log_info_msg "Stopping NFS statd..."
62 + killproc /sbin/rpc.statd
63 + evaluate_retval
64 +
65 + log_info_msg "Stopping NFS nfsd..."
66 + # nfsd needs HUP. Can't use killproc for kernel process.
67 + killall -s HUP nfsd
68 + evaluate_retval
69 +
70 + log_info_msg "Stopping NFS mountd..."
71 + killproc /sbin/rpc.mountd
72 + evaluate_retval
73 +
74 + # Remove a pid file that isn't done automatically
75 + if [ -f /var/run/rpc.statd.pid ]; then
76 + log_success_msg "Removing the rpc.statd pid file if it exists"
77 + rm -f /var/run/rpc.statd.pid
78 + fi
79 + ;;
80 +
81 + reload)
82 + log_info_msg "Reloading NFS Server..."
83 + /sbin/exportfs -ra
84 + evaluate_retval
85 + ;;
86 +
87 + restart)
88 + $0 stop
89 + sleep 1
90 + $0 start
91 + ;;
92 +
93 + status)
94 + statusproc /sbin/rpc.mountd
95 + ## Special case for nfsd with no full path
96 + statusproc nfsd
97 + ;;
98 +
99 + *)
100 + echo "Usage: $0 {start|stop|reload|restart|status}"
101 + exit 1
102 + ;;
103 +esac
104 +
105 +# End /etc/init.d/nfs-server
0 106 new file mode 100755
@@ -0,0 +1,55 @@
1 +#/bin/sh
2 +
3 +. /lib/lsb/init-functions
4 +
5 +DAEMON=/usr/sbin/nginx
6 +PIDFILE=/var/run/nginx.pid
7 +
8 +start() {
9 + log_info_msg "Starting Nginx Server..."
10 + $DAEMON
11 + evaluate_retval
12 +}
13 +
14 +stop() {
15 + log_info_msg "Stopping Nginx Server..."
16 + $DAEMON -s quit
17 + evaluate_retval
18 +}
19 +
20 +reload() {
21 + log_info_msg "Reloading Nginx Server..."
22 + $DAEMON -s reload
23 + evaluate_retval
24 +}
25 +
26 +status() {
27 + pid=`pidof $DAEMON`
28 + if [ "$pid" ]; then
29 + echo "Nginx running on PID $pid"
30 + else
31 + echo "Nginx is not running"
32 + fi
33 +}
34 +
35 +case $1 in
36 + start)
37 + start
38 + ;;
39 + stop)
40 + stop
41 + ;;
42 + restart)
43 + stop
44 + start
45 + ;;
46 + status)
47 + status
48 + ;;
49 + force-reload)
50 + reload
51 + ;;
52 + *)
53 + echo "Syntax: $0 <start|stop|restart|status|force-reload>"
54 + ;;
55 +esac
0 56 new file mode 100644
@@ -0,0 +1,62 @@
1 +#!/bin/sh
2 +########################################################################
3 +# Begin ntpd
4 +#
5 +# Description : Start Network Time Protocol daemon
6 +#
7 +# Author : DJ Lucas - dj@linuxfromscratch.org
8 +# Bruce Dubbs - bdubbs@linuxfromscratch.org
9 +#
10 +# Version : LFS 7.0
11 +#
12 +########################################################################
13 +
14 +### BEGIN INIT INFO
15 +# Provides: ntpd
16 +# Required-Start: $time $network
17 +# Should-Start: $remote_fs
18 +# Required-Stop: $network
19 +# Should-Stop: $remote_fs
20 +# Default-Start: 3 4 5
21 +# Default-Stop: 0 1 2 6
22 +# Short-Description: NTP Network Time Protocol
23 +# Description: NTP Syncronizes time with time servers worldwide
24 +# X-LFS-Provided-By: BLFS / LFS 7.0
25 +### END INIT INFO
26 +
27 +. /lib/lsb/init-functions
28 +
29 +#$LastChangedBy: igor $
30 +#$Date: 2013-08-02 15:27:17 -0500 (Fri, 02 Aug 2013) $
31 +
32 +case "$1" in
33 + start)
34 + log_info_msg "Starting ntpd..."
35 + start_daemon /usr/sbin/ntpd -g -u ntp:ntp
36 + evaluate_retval
37 + ;;
38 +
39 + stop)
40 + log_info_msg "Stopping ntpd..."
41 + killproc /usr/sbin/ntpd
42 + evaluate_retval
43 + ;;
44 +
45 + restart)
46 + $0 stop
47 + sleep 1
48 + $0 start
49 + ;;
50 +
51 + status)
52 + statusproc /usr/sbin/ntpd
53 + ;;
54 +
55 + *)
56 + echo "Usage: $0 {start|stop|restart|status}"
57 + exit 1
58 + ;;
59 +esac
60 +
61 +# End ntpd
62 +
0 63 new file mode 100644
@@ -0,0 +1,132 @@
1 +#! /bin/sh
2 +#######################################################################
3 +# Begin /etc/init.d/php-fpm
4 +#
5 +# Description : Start the PHP fastCGI Proces Manager
6 +#
7 +# Author : P Labastie - pierre.labastie@neuf.fr
8 +# from a file shipped with the PHP pacakge
9 +#
10 +# Version : LFS 7.5
11 +#
12 +########################################################################
13 +
14 +### BEGIN INIT INFO
15 +# Provides: php-fpm
16 +# Required-Start: $syslog $local_fs $network
17 +# Should-Start: $remote_fs
18 +# Required-Stop: $network
19 +# Should-Stop: $remote_fs
20 +# Default-Start: 3 4 5
21 +# Default-Stop: 0 1 2 6
22 +# Short-Description: starts php-fpm
23 +# Description: starts the PHP FastCGI Process Manager daemon
24 +# X-LFS-Provided-By: BLFS / LFS 7.5
25 +### END INIT INFO
26 +
27 +. /lib/lsb/init-functions
28 +
29 +#$LastChangedBy: pierre $
30 +#$Date: 2014-03-29 04:48:53 -0500 (Sat, 29 Mar 2014) $
31 +
32 +prefix=/usr
33 +exec_prefix=${prefix}
34 +
35 +php_fpm_BIN=${exec_prefix}/sbin/php-fpm
36 +php_fpm_CONF=/etc/php-fpm.conf
37 +php_fpm_PID=/var/run/php-fpm.pid
38 +
39 +
40 +php_opts="--fpm-config $php_fpm_CONF --pid $php_fpm_PID"
41 +
42 +
43 +wait_for_pid () {
44 + try=0
45 +
46 + while test $try -lt 35 ; do
47 +
48 + case "$1" in
49 + 'created')
50 + if [ -f "$2" ] ; then
51 + try=''
52 + break
53 + fi
54 + ;;
55 +
56 + 'removed')
57 + if [ ! -f "$2" ] ; then
58 + try=''
59 + break
60 + fi
61 + ;;
62 + esac
63 +
64 + echo -n .
65 + try=`expr $try + 1`
66 + sleep 1
67 +
68 + done
69 +
70 +}
71 +
72 +case "$1" in
73 + start)
74 + log_info_msg "Starting PHP fastCGI Process Manager..."
75 +
76 + start_daemon $php_fpm_BIN --daemonize $php_opts
77 +
78 + if [ "$?" != 0 ] ; then
79 + log_failure_msg2
80 + exit
81 + fi
82 +
83 + wait_for_pid created $php_fpm_PID
84 +
85 + if [ -n "$try" ] ; then
86 + log_failure_msg2
87 + else
88 + log_success_msg2
89 + fi
90 + ;;
91 +
92 + stop)
93 + log_info_msg "Stopping PHP fastCGI Process Manager..."
94 +
95 + if [ ! -r $php_fpm_PID ] ; then
96 + log_warning_msg "php-fpm not running?"
97 + exit
98 + fi
99 +
100 + killproc -p $php_fpm_PID $php_fpm_BIN -QUIT
101 +
102 + wait_for_pid removed $php_fpm_PID
103 +
104 + if [ -n "$try" ] ; then
105 + log_failure_msg2
106 + else
107 + log_success_msg2
108 + fi
109 + ;;
110 +
111 + status)
112 + statusproc $php_fpm_BIN
113 + ;;
114 +
115 + restart)
116 + $0 stop
117 + $0 start
118 + ;;
119 +
120 + reload)
121 +
122 + log_info_msg "Reload service php-fpm..."
123 + killproc -p $php_fpm_PID $php_fpm_BIN -USR2
124 + log_success_msg2
125 + ;;
126 +
127 + *)
128 + echo "Usage: $0 {start|stop|restart|reload|status}"
129 + exit 1
130 + ;;
131 +
132 +esac
0 133 new file mode 100644
@@ -0,0 +1,71 @@
1 +#!/bin/sh
2 +########################################################################
3 +# Begin postfix
4 +#
5 +# Description : Starts Postfix Mail Trasfer Agent
6 +#
7 +# Author : DJ Lucas - dj@linuxfromscratch.org
8 +# Bruce Dubbs - bdubbs@linuxfromscratch.org
9 +#
10 +# Version : LFS 7.0
11 +#
12 +########################################################################
13 +
14 +### BEGIN INIT INFO
15 +# Provides: postfix
16 +# Required-Start: $syslog $local_fs $network
17 +# Should-Start: $remote_fs openldap mysql postgresql saslauthd
18 +# Required-Stop: $network
19 +# Should-Stop: $remote_fs openldap mysql postgresql saslauthd
20 +# Default-Start: 3 4 5
21 +# Default-Stop: 0 1 2 6
22 +# Short-Description: Postfix MTA
23 +# Description: Controls the Postfix Mail Transfer Agent
24 +# X-LFS-Provided-By: BLFS / LFS 7.0
25 +### END INIT INFO
26 +
27 +. /lib/lsb/init-functions
28 +
29 +#$LastChangedBy: krejzi $
30 +#$Date: 2013-01-25 12:12:00 -0600 (Fri, 25 Jan 2013) $
31 +
32 +BINFILE=/usr/lib/postfix/master
33 +PIDFILE=/var/spool/postfix/pid/master.pid
34 +
35 +case "$1" in
36 + start)
37 + log_info_msg "Starting Postfix..."
38 + start_daemon -p "${PIDFILE}" /usr/sbin/postfix start 2> /dev/null
39 + evaluate_retval
40 + ;;
41 +
42 + stop)
43 + log_info_msg "Stopping Postfix..."
44 + killproc -p "${PIDFILE}" ${BINFILE}
45 + evaluate_retval
46 + ;;
47 +
48 + reload)
49 + log_info_msg "Reloading Postfix..."
50 + killproc -p "${PIDFILE}" ${BINFILE} -HUP
51 + evaluate_retval
52 + ;;
53 +
54 + restart)
55 + $0 stop
56 + sleep 1
57 + $0 start
58 + ;;
59 +
60 + status)
61 + echo -n "postfix: "
62 + statusproc -p "${PIDFILE}" ${BINFILE}
63 + ;;
64 +
65 + *)
66 + echo "Usage: $0 {start|stop|reload|restart|status}"
67 + exit 1
68 + ;;
69 +esac
70 +
71 +# End /etc/init.d/postfix
0 72 new file mode 100644
@@ -0,0 +1,66 @@
1 +#!/bin/sh
2 +########################################################################
3 +# Begin /etc/init.d/postgresql
4 +#
5 +# Description : Start PostgreSQL Server
6 +#
7 +# Author : Ken Moffat - ken@linuxfromscratch.org
8 +#
9 +# Version : LFS 7.0
10 +#
11 +# Notes : Based on the earlier version by Gerard Beekmans
12 +#
13 +########################################################################
14 +
15 +### BEGIN INIT INFO
16 +# Provides: PostgreSQL
17 +# Required-Start: $network
18 +# Should-Start: $remote_fs
19 +# Required-Stop: $network
20 +# Should-Stop: $remote_fs
21 +# Default-Start: 3 4 5
22 +# Default-Stop: 0 1 2 6
23 +# Short-Description: Starts PostgreSQL server.
24 +# Description: Starts PostgreSQL server.
25 +# X-LFS-Provided-By: BLFS / LFS 7.0
26 +### END INIT INFO
27 +
28 +. /lib/lsb/init-functions
29 +
30 +#$LastChangedBy: krejzi $
31 +#$Date: 2013-05-12 11:47:06 -0500 (Sun, 12 May 2013) $
32 +
33 +case "$1" in
34 + start)
35 + log_info_msg "Starting PostgreSQL daemon..."
36 +
37 + install -dm755 -o postgres -g postgres /run/postgresql
38 +
39 + su - postgres -c '/usr/bin/pg_ctl start -W -D /srv/pgsql/data \
40 + -l /srv/pgsql/data/logfile -o "-i" '
41 + evaluate_retval
42 + ;;
43 +
44 + stop)
45 + log_info_msg "Stopping PostgreSQL daemon..."
46 + su - postgres -c "/usr/bin/pg_ctl stop -m smart -D /srv/pgsql/data"
47 + evaluate_retval
48 + ;;
49 +
50 + restart)
51 + $0 stop
52 + sleep 1
53 + $0 start
54 + ;;
55 +
56 + status)
57 + su - postgres -c "/usr/bin/pg_ctl status -D /srv/pgsql/data"
58 + ;;
59 +
60 + *)
61 + echo "Usage: $0 {start|stop|restart|status}"
62 + exit 1
63 + ;;
64 +esac
65 +
66 +# End /etc/init.d/postgresql
0 67 new file mode 100644
@@ -0,0 +1,66 @@
1 +#!/bin/sh
2 +########################################################################
3 +# Begin /etc/init.d/vsftpd
4 +#
5 +# Description : Start Pro FTP Daemon
6 +#
7 +# Author : Bruce Dubbs - bdubbs@linuxfromscratch.org
8 +#
9 +# Version : LFS 7.2
10 +#
11 +########################################################################
12 +
13 +### BEGIN INIT INFO
14 +# Provides: ftpd
15 +# Required-Start: $remote_fs
16 +# Should-Start:
17 +# Required-Stop: $remote_fs
18 +# Should-Stop:
19 +# Default-Start: 3 4 5
20 +# Default-Stop: 0 1 2 6
21 +# Short-Description: Starts proftpd server.
22 +# Description: Starts Professional FTP Daemon (proftpd).
23 +# X-LFS-Provided-By: LFS
24 +### END INIT INFO
25 +
26 +. /lib/lsb/init-functions
27 +
28 +#$LastChangedBy: bdubbs $
29 +#$Date: 2012-04-21 17:07:20 -0500 (Sat, 21 Apr 2012) $
30 +
31 +case "$1" in
32 + start)
33 + log_info_msg "Starting FTP Server..."
34 + start_daemon /usr/sbin/proftpd
35 + evaluate_retval
36 + ;;
37 +
38 + stop)
39 + log_info_msg "Stopping FTP Server..."
40 + killproc /usr/sbin/proftpd
41 + evaluate_retval
42 + ;;
43 +
44 + reload)
45 + log_info_msg "Reloading FTP Server..."
46 + killproc /usr/sbin/proftpd -HUP
47 + evaluate_retval
48 + ;;
49 +
50 + restart)
51 + $0 stop
52 + sleep 1
53 + $0 start
54 + ;;
55 +
56 + status)
57 + statusproc /usr/sbin/proftpd
58 + ;;
59 +
60 + *)
61 + echo "Usage: $0 {start|stop|reload|restart|status}"
62 + exit 1
63 + ;;
64 +esac
65 +
66 +# End /etc/init.d/proftpd
0 67 new file mode 100644
@@ -0,0 +1,67 @@
1 +#!/bin/sh
2 +########################################################################
3 +# Begin /etc/init.d/qpopper
4 +#
5 +# Description : Provide Post Office Protocol (POP3) services
6 +#
7 +# Author : Bruce Dubbs - bdubbs@linuxfromscratch.org
8 +#
9 +# Version : LFS 7.2
10 +#
11 +########################################################################
12 +
13 +### BEGIN INIT INFO
14 +# Provides: qpopper
15 +# Required-Start: $syslog $local_fs $network
16 +# Should-Start:
17 +# Required-Stop: $network
18 +# Should-Stop:
19 +# Default-Start: 3 4 5
20 +# Default-Stop: 0 1 2 6
21 +# Short-Description: Starts qpopper (POP3) process.
22 +# Description: Starts qpopper (POP3) process.
23 +# X-LFS-Provided-By: BLFS
24 +### END INIT INFO
25 +
26 +. /lib/lsb/init-functions
27 +
28 +#$LastChangedBy: bdubbs $
29 +#$Date: 2012-04-18 21:23:42 -0500 (Wed, 18 Apr 2012) $
30 +
31 +CONFIG=/etc/mail/qpopper.conf
32 +QPOPPER=/usr/sbin/popper
33 +#PORT=110
34 +
35 +[ -x $QPOPPER ] || exit 0
36 +
37 +case "$1" in
38 + start)
39 + log_info_msg "Starting Qpopper daemon..."
40 +
41 + if [ ! -f $CONFIG ]; then
42 + log_failure_msg2 "$CONFIG missing!"
43 + exit 1
44 + fi
45 +
46 + start_daemon $QPOPPER $PORT -f $CONFIG
47 + evaluate_retval
48 + ;;
49 +
50 + stop)
51 + log_info_msg "Stopping Qpopper..."
52 + killproc $QPOPPER
53 + evaluate_retval
54 + ;;
55 +
56 + restart)
57 + $0 stop
58 + $0 start
59 + ;;
60 +
61 + *)
62 + echo "Usage: $0 {start|stop|restart}"
63 + exit 1
64 + ;;
65 +esac
66 +
67 +# End /etc/init.d/qpopper
0 68 new file mode 100644
@@ -0,0 +1,55 @@
1 +#!/bin/sh
2 +########################################################################
3 +# Begin random
4 +#
5 +# Description : Seed /dev/urandom
6 +#
7 +# Author : Larry Lawrence
8 +#
9 +# Version : LFS 7.0
10 +#
11 +########################################################################
12 +
13 +### BEGIN INIT INFO
14 +# Provides: random
15 +# Required-Start: $local_fs
16 +# Should-Start:
17 +# Required-Stop: $local_fs
18 +# Should-Stop:
19 +# Default-Start: 2 3 4 5
20 +# Default-Stop: 0 1 6
21 +# Short-Description: Initialises /dev/urandom
22 +# Description: Initialises /dev/urandom from a seed stored in /var/tmp.
23 +# X-LFS-Provided-By: BLFS / LFS 7.0
24 +### END INIT INFO
25 +
26 +. /lib/lsb/init-functions
27 +
28 +#$LastChangedBy: bdubbs $
29 +#$Date: 2011-12-05 23:56:33 -0600 (Mon, 05 Dec 2011) $
30 +
31 +case "$1" in
32 + start)
33 + log_info_msg "Initializing kernel random number generator..."
34 +
35 + if [ -f /var/tmp/random-seed ]; then
36 + /bin/cat /var/tmp/random-seed >/dev/urandom
37 + fi
38 +
39 + /bin/dd if=/dev/urandom of=/var/tmp/random-seed count=1 &>/dev/null
40 + evaluate_retval
41 + ;;
42 +
43 + stop)
44 + log_info_msg "Saving random seed..."
45 + /bin/dd if=/dev/urandom of=/var/tmp/random-seed count=1 &>/dev/null
46 + evaluate_retval
47 + ;;
48 +
49 + *)
50 + echo "Usage: $0 {start|stop}"
51 + exit 1
52 + ;;
53 +esac
54 +
55 +# End /etc/init.d/random
0 56 new file mode 100644
@@ -0,0 +1,66 @@
1 +#!/bin/sh
2 +########################################################################
3 +# Begin rpcbind
4 +#
5 +# Description : Start rpcbind daemon
6 +#
7 +# Author : Ken Moffat - ken@linuxfromscratch.org, based on portmap
8 +# script by Bruce Dubbs
9 +#
10 +# Version : LFS 7.0
11 +#
12 +########################################################################
13 +
14 +### BEGIN INIT INFO
15 +# Provides: rpcbind $portmap
16 +# Required-Start: $network
17 +# Should-Start:
18 +# Required-Stop: $network
19 +# Should-Stop:
20 +# Default-Start: 3 4 5
21 +# Default-Stop: 0 1 2 6
22 +# Short-Description: Starts the rpcbind daemon.
23 +# Description: Starts the rpcbind daemon to convert RPC program numbers
24 +# into DARPA protocol port numbers. It must be running in
25 +# order to make RPC# calls. Replaces portmap, which does
26 +# not work with libtirpc.
27 +# X-LFS-Provided-By: BLFS / LFS 7.0
28 +### END INIT INFO
29 +
30 +. /lib/lsb/init-functions
31 +
32 +#$LastChangedBy: dj $
33 +#$Date: 2011-12-05 01:38:40 -0600 (Mon, 05 Dec 2011) $
34 +
35 +case "$1" in
36 + start)
37 + log_info_msg "Starting rpcbind"
38 + start_daemon /sbin/rpcbind
39 + evaluate_retval
40 + ;;
41 +
42 + stop)
43 + log_info_msg "Stopping rpcbind"
44 + killproc /sbin/rpcbind
45 + evaluate_retval
46 + ;;
47 +
48 + restart)
49 + $0 stop
50 + sleep 1
51 + $0 start
52 + ;;
53 +
54 + status)
55 + statusproc /sbin/rpcbind
56 + ;;
57 +
58 + *)
59 + echo "Usage: $0 {start|stop|restart|status}"
60 + exit 1
61 + ;;
62 +
63 +esac
64 +
65 +# End /etc/init.d/rpcbind
66 +
0 67 new file mode 100644
@@ -0,0 +1,61 @@
1 +#!/bin/sh
2 +#######################################################################
3 +# Begin /etc/init.d/rsyncd
4 +#
5 +# Description : Start rsync server
6 +#
7 +# Author : Bruce Dubbs - bdubbs@linuxfromscratch.org
8 +#
9 +# Version : LFS 7.0
10 +#
11 +########################################################################
12 +
13 +### BEGIN INIT INFO
14 +# Provides: rsyncd
15 +# Required-Start: $syslog $local_fs $network
16 +# Should-Start: $remote_fs
17 +# Required-Stop: $network
18 +# Should-Stop: $remote_fs
19 +# Default-Start: 3 4 5
20 +# Default-Stop: 0 1 2 6
21 +# Short-Description: Starts rsync daemon.
22 +# Description: Starts rsync daemon which is used to copy
23 +# files from and to remote machines.
24 +# X-LFS-Provided-By: BLFS / LFS 7.0
25 +### END INIT INFO
26 +
27 +. /lib/lsb/init-functions
28 +
29 +#$LastChangedBy: krejzi $
30 +#$Date: 2012-08-28 10:06:39 -0500 (Tue, 28 Aug 2012) $
31 +
32 +case "$1" in
33 + start)
34 + log_info_msg "Starting RSYNC Server..."
35 + start_daemon /usr/bin/rsync --daemon
36 + evaluate_retval
37 + ;;
38 +
39 + stop)
40 + log_info_msg "Stopping RSYNC Server..."
41 + killproc /usr/bin/rsync
42 + evaluate_retval
43 + ;;
44 +
45 + restart)
46 + $0 stop
47 + sleep 1
48 + $0 start
49 + ;;
50 +
51 + status)
52 + statusproc /usr/bin/rsync
53 + ;;
54 +
55 + *)
56 + echo "Usage: $0 {start|stop|restart|status}"
57 + exit 1
58 + ;;
59 +esac
60 +
61 +# End /etc/init.d/rsyncd
0 62 new file mode 100644
@@ -0,0 +1,73 @@
1 +#!/bin/sh
2 +# Begin /etc/init.d/samba
3 +
4 +### BEGIN INIT INFO
5 +# Provides: samba
6 +# Required-Start: $network
7 +# Should-Start: $remote_fs cups slapd ntpd
8 +# Required-Stop: $network
9 +# Should-Stop: $remote_fs cups slapd ntpd
10 +# Default-Start: 3 4 5
11 +# Default-Stop: 0 1 2 6
12 +# Short-Description: Provides SMB (Windows) networking.
13 +# Description: Starts Samba smbd and nmbd processess which provide
14 +# connectivity to SMB (Windows) networks.
15 +# X-LFS-Provided-By: BLFS
16 +### END INIT INFO
17 +
18 +. /lib/lsb/init-functions
19 +
20 +#$LastChangedBy: krejzi $
21 +#$Date: 2013-03-10 16:07:50 -0500 (Sun, 10 Mar 2013) $
22 +
23 +case "$1" in
24 + start)
25 + mkdir -p /run/samba
26 +
27 + log_info_msg "Starting nmbd..."
28 + start_daemon /usr/sbin/nmbd -D
29 + evaluate_retval
30 +
31 + log_info_msg "Starting smbd..."
32 + start_daemon /usr/sbin/smbd -D
33 + evaluate_retval
34 + ;;
35 +
36 + stop)
37 + log_info_msg "Stopping smbd..."
38 + killproc /usr/sbin/smbd
39 + evaluate_retval
40 +
41 + log_info_msg "Stopping nmbd..."
42 + killproc /usr/sbin/nmbd
43 + evaluate_retval
44 + ;;
45 +
46 + reload)
47 + log_info_msg "Reloading smbd..."
48 + killproc /usr/sbin/smbd -HUP
49 + evaluate_retval
50 +
51 + log_info_msg "Reloading nmbd..."
52 + killproc /usr/sbin/nmbd -HUP
53 + evaluate_retval
54 + ;;
55 +
56 + restart)
57 + $0 stop
58 + sleep 1
59 + $0 start
60 + ;;
61 +
62 + status)
63 + statusproc /usr/sbin/nmbd
64 + statusproc /usr/sbin/smbd
65 + ;;
66 +
67 + *)
68 + echo "Usage: $0 {start|stop|reload|restart|status}"
69 + exit 1
70 + ;;
71 +esac
72 +
73 +# End /etc/init.d/samba
0 74 new file mode 100644
@@ -0,0 +1,84 @@
1 +#!/bin/sh
2 +########################################################################
3 +# Begin saslauthd
4 +#
5 +# Description : Cyrus SASL Boot Script
6 +#
7 +# Authors : Armin K. <krejzi@email.com>
8 +#
9 +# Version : BLFS SVN
10 +#
11 +# Notes : Not enabled by default.
12 +#
13 +########################################################################
14 +
15 +### BEGIN INIT INFO
16 +# Provides: saslauthd
17 +# Required-Start: $local_fs
18 +# Required-Stop: $local_fs
19 +# Default-Start: 2 3 4 5
20 +# Default-Stop: 0 1 6
21 +# Short-Description: saslauthd startup script
22 +# Description: This script starts the saslauthd daemon. It is
23 +# configured using the file /etc/sysconfig/saslauthd.
24 +# X-LFS-Provided-By: BLFS
25 +### END INIT INFO
26 +
27 +. /lib/lsb/init-functions
28 +
29 +START="no"
30 +AUTHMECH=""
31 +OPTIONS=""
32 +
33 +if [ -f "/etc/sysconfig/saslauthd" ]; then
34 + . /etc/sysconfig/saslauthd
35 +fi
36 +
37 +case "${1}" in
38 + start)
39 +
40 + if [ "$START" != "yes" ]; then
41 + MSG="Configure saslauthd in /etc/sysconfig/saslauthd"
42 + log_warning_msg "$MSG and set START to yes"
43 + exit 0
44 + fi
45 +
46 + if [ -z "$AUTHMECH" ]; then
47 + MSG="You need to select auth mechanism in"
48 + log_warning_msg "$MSG /etc/sysconfig/saslauthd"
49 + exit 0
50 + fi
51 +
52 + if [ ! -d /var/run/saslauthd ]; then
53 + install -d -o root -g root -m 711 /var/run/saslauthd
54 + fi
55 +
56 + log_info_msg "Starting SASL Authentication Daemon saslauthd"
57 + start_daemon /usr/sbin/saslauthd -a $AUTHMECH $OPTIONS
58 + evaluate_retval
59 + ;;
60 +
61 + stop)
62 + log_info_msg "Stopping SASL Authentication Daemon saslauthd"
63 + killproc /usr/sbin/saslauthd
64 + evaluate_retval
65 + ;;
66 +
67 + restart)
68 + ${0} stop
69 + sleep 1
70 + ${0} start
71 + ;;
72 +
73 + status)
74 + statusproc /usr/sbin/saslauthd
75 + ;;
76 +
77 + *)
78 + echo "Usage: ${0} {start|stop|restart|status}"
79 + exit 1
80 + ;;
81 + esac
82 +exit 0
83 +
84 +# End saslauthd
0 85 new file mode 100644
@@ -0,0 +1,53 @@
1 +#!/bin/sh
2 +# Begin /etc/rc.d/init.d/sddm
3 +
4 +### BEGIN INIT INFO
5 +# Provides: sddm
6 +# Required-Start: $local_fs
7 +# Should-Start: $remote_fs $syslog
8 +# Required-Stop: $local_fs
9 +# Should-Stop: $remote_fs $syslog
10 +# Default-Start: 5
11 +# Default-Stop: 0 1 2 3 4 6
12 +# Short-Description: Starts sddm.
13 +# Description: Starts sddm daemon.
14 +# X-LFS-Provided-By: BLFS
15 +### END INIT INFO
16 +
17 +. /lib/lsb/init-functions
18 +
19 +BIN_FILE="/usr/bin/sddm"
20 +
21 +#$LastChangedBy: fernando $
22 +#$Date: 2015-09-24 20:29:34 -0500 (Thu, 24 Sep 2015) $
23 +
24 +case $1 in
25 + start)
26 + log_info_msg "Starting SDDM..."
27 + start_daemon $BIN_FILE &
28 + evaluate_retval
29 + ;;
30 +
31 + stop)
32 + log_info_msg "Stopping SDDM..."
33 + killproc $BIN_FILE
34 + evaluate_retval
35 + ;;
36 +
37 + restart)
38 + $0 stop
39 + sleep 2
40 + $0 start
41 + ;;
42 +
43 + status)
44 + statusproc ${BIN_FILE}
45 + ;;
46 +
47 + *)
48 + echo "usage: $0 [start|stop|restart|status]"
49 + exit 1
50 + ;;
51 +esac
52 +
53 +# End /etc/rc.d/init.d/sddm
0 54 new file mode 100644
@@ -0,0 +1,57 @@
1 +#!/bin/sh
2 +########################################################################
3 +# Begin sendmail
4 +#
5 +# Description : Starts Sendmail Mail Trasfer Agent
6 +#
7 +# Author : Bruce Dubbs - bdubbs@linuxfromscratch.org
8 +#
9 +# Version : LFS 7.2
10 +#
11 +########################################################################
12 +
13 +### BEGIN INIT INFO
14 +# Provides: sendmail
15 +# Required-Start: $syslog $local_fs $network
16 +# Should-Start: $remote_fs openldap mysql postgresql saslauthd
17 +# Required-Stop: $network
18 +# Should-Stop: $remote_fs openldap mysql postgresql saslauthd
19 +# Default-Start: 3 4 5
20 +# Default-Stop: 0 1 2 6
21 +# Short-Description: Sendmail MTA
22 +# Description: Controls the Sendmail Mail Transfer Agent
23 +# X-LFS-Provided-By: BLFS / LFS 7.2
24 +### END INIT INFO
25 +
26 +. /lib/lsb/init-functions
27 +
28 +case "$1" in
29 + start)
30 + log_info_msg "Starting sendmail..."
31 + start_daemon /usr/sbin/sendmail -bs -bd -q5m start
32 + evaluate_retval
33 + ;;
34 +
35 + stop)
36 + log_info_msg "Stopping Sendmail..."
37 + killproc /usr/sbin/sendmail
38 + evaluate_retval
39 + ;;
40 +
41 + status)
42 + statusproc /usr/sbin/sendmail
43 + ;;
44 +
45 + restart)
46 + $0 stop
47 + sleep 1
48 + $0 start
49 + ;;
50 +
51 + *)
52 + echo "Usage: $0 {start|stop|status|restart}"
53 + exit 1
54 + ;;
55 +esac
56 +
57 +# End /etc/init.d/sendmail
0 58 new file mode 100644
@@ -0,0 +1,74 @@
1 +#!/bin/sh
2 +########################################################################
3 +# Begin slapd
4 +#
5 +# Description : OpenLDAP Boot Script
6 +#
7 +# Authors : Armin K. <krejzi@email.com>
8 +#
9 +# Version : BLFS SVN
10 +#
11 +# Notes : Can be configured through /etc/sysconfig/slapd.
12 +#
13 +########################################################################
14 +
15 +### BEGIN INIT INFO
16 +# Provides: slapd
17 +# Required-Start: $network $syslog
18 +# Required-Stop: $network $syslog
19 +# Default-Start: 3 4 5
20 +# Default-Stop: 0 1 6
21 +# Short-Description: OpenLDAP standalone server
22 +# X-LFS-Provided-By: BLFS
23 +### END INIT INFO
24 +
25 +. /lib/lsb/init-functions
26 +
27 +SLAPD_OPTIONS=""
28 +
29 +if [ -f "/etc/sysconfig/slapd" ]; then
30 + . /etc/sysconfig/slapd
31 +fi
32 +
33 +case "${1}" in
34 + start)
35 +
36 + if [ ! -d /var/run/openldap ]; then
37 + install -d -o ldap -g ldap -m 755 /var/run/openldap
38 + fi
39 +
40 + log_info_msg "Starting OpenLDAP"
41 +
42 + if [ -z "$SLAPD_SERVICES" ]; then
43 + start_daemon /usr/sbin/slapd -u ldap -g ldap $SLAPD_OPTIONS
44 + else
45 + start_daemon /usr/sbin/slapd -u ldap -g ldap -h "$SLAPD_SERVICES" $SLAPD_OPTIONS
46 + fi
47 + evaluate_retval
48 + ;;
49 +
50 + stop)
51 + log_info_msg "Stopping OpenLDAP"
52 + killproc /usr/sbin/slapd
53 + evaluate_retval
54 + ;;
55 +
56 + restart)
57 + ${0} stop
58 + sleep 1
59 + ${0} start
60 + ;;
61 +
62 + status)
63 + statusproc /usr/sbin/slapd
64 + ;;
65 +
66 + *)
67 + echo "Usage: ${0} {start|stop|restart|status}"
68 + exit 1
69 + ;;
70 +esac
71 +
72 +exit 0
73 +
74 +# End slapd
0 75 new file mode 100644
@@ -0,0 +1,79 @@
1 +#! /bin/sh
2 +
3 +# smartmontools init file for smartd
4 +
5 +### BEGIN INIT INFO
6 +# Provides: smartd
7 +# Required-Start: $syslog $remote_fs
8 +# Should-Start: sendmail
9 +# Required-Stop: $syslog $remote_fs
10 +# Should-Stop: sendmail
11 +# Default-Start: 2 3 5
12 +# Default-Stop:
13 +# Short-Description: Monitors disk and tape health via S.M.A.R.T.
14 +# Description: Start S.M.A.R.T. disk and tape monitor.
15 +### END INIT INFO
16 +
17 +source /lib/lsb/init-functions
18 +
19 +# Source configuration file. This should define the shell variable smartd_opts
20 +[ -r /etc/sysconfig/smartmontools ] && . /etc/sysconfig/smartmontools
21 +
22 +SMARTD_BIN=/usr/sbin/smartd
23 +pidfile=/run/lock/smartd
24 +config=/etc/smartd.conf
25 +
26 +case "$1" in
27 + start)
28 + log_info_msg "Starting smartd... "
29 +
30 + if [ ! -f $config ]; then
31 + log_info_msg2 "configuration file $config missing"
32 + failed=1
33 +
34 + elif start_daemon $SMARTD_BIN $smartd_opts; then
35 + touch $pidfile
36 +
37 + else
38 + failed=1
39 + fi
40 +
41 + (exit $failed)
42 + evaluate_retval
43 + ;;
44 +
45 + stop)
46 + log_info_msg "Stopping smartd... "
47 + killproc $SMARTD_BIN
48 + evaluate_retval
49 + rm -f $pidfile
50 + ;;
51 +
52 + report)
53 + log_info_msg "Checking SMART devices now... "
54 + killproc $SMARTD_BIN -USR1
55 + evaluate_retval
56 + ;;
57 +
58 + reload)
59 + log_info_msg "Reloading smartd daemon configuration... "
60 + killproc $SMARTD_BIN -HUP
61 + evaluate_retval
62 + ;;
63 +
64 + restart)
65 + $0 stop
66 + sleep 1
67 + $0 start
68 + ;;
69 +
70 + status)
71 + statusproc $SMARTD_BIN
72 + ;;
73 +
74 + *)
75 + echo "Usage: $0 {start|stop|report|reload|restart|status}"
76 + exit 1
77 + ;;
78 +esac
79 +
0 80 new file mode 100644
@@ -0,0 +1,67 @@
1 +#!/bin/sh
2 +########################################################################
3 +# Begin soprano
4 +#
5 +# Description :
6 +#
7 +# Author : Bruce Dubbs - bdubbs@linuxfromscratch.org
8 +#
9 +# Version : LFS 7.2
10 +#
11 +########################################################################
12 +
13 +### BEGIN INIT INFO
14 +# Provides: sopranod
15 +# Required-Start: $syslog $local_fs $network
16 +# Should-Start: $remote_fs
17 +# Required-Stop: $network
18 +# Should-Stop: $remote_fs
19 +# Default-Start: 3 4 5
20 +# Default-Stop: 0 1 2 6
21 +# Short-Description: Controls the soprano (QRDF) daemon
22 +# Description: Controls the soprano (QRDF) daemon
23 +# X-LFS-Provided-By: BLFS / LFS 7.0
24 +### END INIT INFO
25 +
26 +. /lib/lsb/init-functions
27 +[ -r /etc/sysconfig/soprano ] && . /etc/sysconfig/soprano
28 +
29 +case "$1" in
30 + start)
31 + log_info_msg "Starting Soprano Server..."
32 + HOME=$SOPRANO_STORAGE /usr/bin/sopranod \
33 + --storagedir $SOPRANO_STORAGE \
34 + --backend $SOPRANO_BACKEND \
35 + $SOPRANO_OPTIONS &
36 + evaluate_retval
37 + ;;
38 +
39 + stop)
40 + log_info_msg "Stopping Soprano Server..."
41 + killproc /usr/bin/sopranod
42 + evaluate_retval
43 + ;;
44 +
45 + reload)
46 + log_info_msg "Reloading Soprano Server..."
47 + killproc /usr/bin/sopranod -HUP
48 + evaluate_retval
49 + ;;
50 +
51 + restart)
52 + $0 stop
53 + sleep 1
54 + $0 start
55 + ;;
56 +
57 + status)
58 + statusproc /usr/bin/sopranod
59 + ;;
60 +
61 + *)
62 + echo "Usage: $0 {start|stop|reload|restart|status}"
63 + exit 1
64 + ;;
65 +esac
66 +
67 +# End /etc/init.d/soprano
0 68 new file mode 100644
@@ -0,0 +1,90 @@
1 +#!/bin/sh
2 +########################################################################
3 +# Begin sshd
4 +#
5 +# Description : Start sshd daemon
6 +#
7 +# Author : Bruce Dubbs - bdubbs@linuxfromscratch.org
8 +#
9 +# Version : LFS 7.0
10 +#
11 +########################################################################
12 +
13 +### BEGIN INIT INFO
14 +# Provides: sshd
15 +# Required-Start: $network
16 +# Should-Start:
17 +# Required-Stop: sendsignals
18 +# Should-Stop:
19 +# Default-Start: 3 4 5
20 +# Default-Stop: 0 1 2 6
21 +# Short-Description: Starts sshd daemon.
22 +# Description: Starts sshd daemon.
23 +# X-LFS-Provided-By: LFS
24 +### END INIT INFO
25 +
26 +. /lib/lsb/init-functions
27 +
28 +#$LastChangedBy: dj $
29 +#$Date: 2012-06-18 18:42:28 -0500 (Mon, 18 Jun 2012) $
30 +
31 +case "$1" in
32 + start)
33 +
34 + log_info_msg "Starting SSH Server..."
35 + if [ ! -f /etc/ssh/ssh_host_rsa_key ]; then
36 + /usr/bin/ssh-keygen -t rsa -N "" -f /etc/ssh/ssh_host_rsa_key
37 + fi
38 + if [ ! -f /etc/ssh/ssh_host_dsa_key ]; then
39 + /usr/bin/ssh-keygen -t dsa -N "" -f /etc/ssh/ssh_host_dsa_key
40 + fi
41 + if [ ! -f /etc/ssh/ssh_host_ecdsa_key ]; then
42 + /usr/bin/ssh-keygen -t ecdsa -N "" -f /etc/ssh/ssh_host_ecdsa_key
43 + fi
44 + if [ ! -f /etc/ssh/ssh_host_ed25519_key ]; then
45 + /usr/bin/ssh-keygen -t ed25519 -N "" -f /etc/ssh/ssh_host_ed25519_key
46 + fi
47 + start_daemon -f /usr/sbin/sshd
48 + evaluate_retval
49 + # Also prevent ssh from being killed by out of memory conditions
50 + sleep 1
51 + pid=`cat /run/sshd.pid 2>/dev/null`
52 + echo "-16" >/proc/${pid}/oom_score_adj
53 + ;;
54 +
55 + stop)
56 + log_info_msg "Stopping SSH Server..."
57 + killproc -p "/run/sshd.pid" /usr/sbin/sshd
58 + evaluate_retval
59 + ;;
60 +
61 + reload)
62 + log_info_msg "Reloading SSH Server..."
63 + pid=`cat /run/sshd.pid 2>/dev/null`
64 +
65 + if [ -n "${pid}" ]; then
66 + kill -HUP "${pid}"
67 + else
68 + (exit 1)
69 + fi
70 +
71 + evaluate_retval
72 + ;;
73 +
74 + restart)
75 + $0 stop
76 + sleep 1
77 + $0 start
78 + ;;
79 +
80 + status)
81 + statusproc /usr/sbin/sshd
82 + ;;
83 +
84 + *)
85 + echo "Usage: $0 {start|stop|reload|restart|status}"
86 + exit 1
87 + ;;
88 +esac
89 +
90 +# End sshd bootscript
0 91 new file mode 100644
@@ -0,0 +1,55 @@
1 +#!/bin/sh
2 +# Begin /etc/init.d/stunnel
3 +
4 +### BEGIN INIT INFO
5 +# Provides: samba
6 +# Required-Start: $network
7 +# Should-Start: $remote_fs
8 +# Required-Stop: $network
9 +# Should-Stop: $remote_fs
10 +# Default-Start: 3 4 5
11 +# Default-Stop: 0 1 2 6
12 +# Short-Description: Provides an SSL encryption wrapper.
13 +# Description: Provides an SSL encryption wrapper between remote clients and
14 +# local (inetd-startable) or remote servers. The concept is that
15 +# having non-SSL aware daemons running on your system you can
16 +# easily set them up to communicate with clients over secure SSL
17 +# channels.
18 +# X-LFS-Provided-By: BLFS
19 +### END INIT INFO
20 +
21 +. /lib/lsb/init-functions
22 +
23 +#$LastChangedBy: bdubbs $
24 +#$Date: 2011-11-11 22:33:41 -0600 (Fri, 11 Nov 2011) $
25 +
26 +case "$1" in
27 + start)
28 + log_info_msg "Starting the Stunnel Daemon..."
29 + start_daemon /usr/bin/stunnel
30 + evaluate_retval
31 + ;;
32 +
33 + stop)
34 + log_info_msg "Stopping the Stunnel Daemon..."
35 + killproc /usr/bin/stunnel
36 + evaluate_retval
37 + ;;
38 +
39 + restart)
40 + $0 stop
41 + sleep 1
42 + $0 start
43 + ;;
44 +
45 + status)
46 + statusproc /usr/bin/stunnel
47 + ;;
48 +
49 + *)
50 + echo "Usage: $0 {start|stop|restart|status}"
51 + exit 1
52 + ;;
53 +esac
54 +
55 +# End /etc/init.d/stunnel
0 56 new file mode 100644
@@ -0,0 +1,60 @@
1 +#!/bin/sh
2 +########################################################################
3 +# Begin /etc/init.d/svn
4 +#
5 +# Description : Start Subversion server
6 +#
7 +# Author : Bruce Dubbs - bdubbs@linuxfromscratch.org
8 +#
9 +# Version : LFS 7.0
10 +#
11 +########################################################################
12 +
13 +### BEGIN INIT INFO
14 +# Provides: svn
15 +# Required-Start: $network
16 +# Should-Start: $remote_fs
17 +# Required-Stop: $network
18 +# Should-Stop: $remote_fs
19 +# Default-Start: 3 4 5
20 +# Default-Stop: 0 1 2 6
21 +# Short-Description: Starts subersion server.
22 +# Description: Starts subversion version control system server daemon.
23 +# X-LFS-Provided-By: BLFS / LFS 7.0
24 +### END INIT INFO
25 +
26 +. /lib/lsb/init-functions
27 +
28 +#$LastChangedBy: bdubbs $
29 +#$Date: 2011-12-05 20:37:16 -0600 (Mon, 05 Dec 2011) $
30 +
31 +case "$1" in
32 + start)
33 + log_info_msg "Starting Subversion..."
34 + start_daemon /usr/bin/svnserve -d -r /srv/svn/repositories
35 + evaluate_retval
36 + ;;
37 +
38 + stop)
39 + log_info_msg "Stopping Subversion..."
40 + killproc /usr/bin/svnserve.orig
41 + evaluate_retval
42 + ;;
43 +
44 + restart)
45 + $0 stop
46 + sleep 1
47 + $0 start
48 + ;;
49 +
50 + status)
51 + statusproc /usr/bin/svnserve.orig
52 + ;;
53 +
54 + *)
55 + echo "Usage: $0 {start|stop|restart|status}"
56 + exit 1
57 + ;;
58 +esac
59 +
60 +# End /etc/init.d/svn
0 61 new file mode 100644
@@ -0,0 +1,62 @@
1 +#!/bin/sh
2 +# Begin /etc/init.d/swat
3 +
4 +### BEGIN INIT INFO
5 +# Provides: swat
6 +# Required-Start: $network
7 +# Should-Start: $remote_fs
8 +# Required-Stop: $network
9 +# Should-Stop: $remote_fs
10 +# Default-Start: 3 4 5
11 +# Default-Stop: 0 1 2 6
12 +# Short-Description: Provides Samba configuration tool
13 +# Description: Starts Samba configuration tool over a secure
14 +# tunnel;
15 +# X-LFS-Provided-By: BLFS
16 +### END INIT INFO
17 +
18 +. /lib/lsb/init-functions
19 +
20 +#$LastChangedBy: bdubbs $
21 +#$Date: 2012-04-20 21:17:24 -0500 (Fri, 20 Apr 2012) $
22 +
23 +config=/etc/stunnel/swat.conf
24 +
25 +if [ ! -r /etc/stunnel/swat.conf ]; then
26 + log_failure_msg "swat configuration file missing: $config"
27 + exit 1
28 +fi
29 +
30 +# Pid coordinates with /etc/stunnel/swat.conf
31 +pidfile=/run/stunnel-swat.pid
32 +
33 +case "$1" in
34 + start)
35 + log_info_msg "Starting swat..."
36 + start_daemon /usr/bin/stunnel $config
37 + evaluate_retval
38 + ;;
39 +
40 + stop)
41 + log_info_msg "Stopping swat..."
42 + killproc -p $pidfile /usr/bin/stunnel
43 + evaluate_retval
44 + ;;
45 +
46 + restart)
47 + $0 stop
48 + sleep 1
49 + $0 start
50 + ;;
51 +
52 + status)
53 + statusproc -p $pidfile /usr/bin/stunnel
54 + ;;
55 +
56 + *)
57 + echo "Usage: $0 {start|stop|restart|status}"
58 + exit 1
59 + ;;
60 +esac
61 +
62 +# End /etc/init.d/samba
0 63 new file mode 100644
@@ -0,0 +1,45 @@
1 +#!/bin/sh
2 +# Begin /etc/init.d/sysstat
3 +########################################################################
4 +# Begin ntpd
5 +#
6 +# Description : Clear kernel counters for sysstat
7 +#
8 +# Author : Bruce Dubbs - bdubbs@linuxfromscratch.org
9 +#
10 +# Version : LFS 7.0
11 +#
12 +########################################################################
13 +
14 +### BEGIN INIT INFO
15 +# Provides: Reset of system activity data collector file
16 +# Required-Start:
17 +# Should-Start:
18 +# Required-Stop:
19 +# Should-Stop:
20 +# Default-Start: S
21 +# Default-Stop:
22 +# Short-Description: Reset system activity data collector file
23 +# Description: Reset system activity data collector file
24 +# X-LFS-Provided-By: BLFS / LFS 7.0
25 +### END INIT INFO
26 +
27 +. /lib/lsb/init-functions
28 +
29 +#$LastChangedBy: bdubbs $
30 +#$Date: 2012-05-10 17:27:43 -0500 (Thu, 10 May 2012) $
31 +
32 +case "$1" in
33 + start)
34 + log_info_msg "Calling the system activity data collector (sadc)..."
35 + /usr/lib/sa/sadc -F -L -
36 + evaluate_retval
37 + ;;
38 +
39 + *)
40 + echo "Usage: $0 start"
41 + exit 1
42 + ;;
43 +esac
44 +
45 +# End /etc/init.d/sysstat
0 46 new file mode 100644
@@ -0,0 +1,59 @@
1 +#!/bin/sh
2 +########################################################################
3 +# Begin unbound
4 +#
5 +# Description : Unbound DNS resolver boot script
6 +#
7 +# Author : Igor Živković <contact@igor-zivkovic.from.hr>
8 +#
9 +# Version : BLFS SVN
10 +#
11 +########################################################################
12 +
13 +
14 +### BEGIN INIT INFO
15 +# Provides: unbound
16 +# Required-Start: $network $remote_fs $syslog
17 +# Required-Stop: $network $remote_fs $syslog
18 +# Default-Start: 2 3 4 5
19 +# Default-Stop: 0 1 6
20 +# Short-Description: Starts Unbound DNS resolver
21 +# X-LFS-Provided-By: BLFS
22 +### END INIT INFO
23 +
24 +. /lib/lsb/init-functions
25 +
26 +#$LastChangedBy: igor $
27 +#$Date: 2013-07-21 18:16:47 -0500 (Sun, 21 Jul 2013) $
28 +
29 +case "$1" in
30 + start)
31 + log_info_msg "Starting Unbound DNS resolver..."
32 + unbound-anchor
33 + start_daemon /usr/sbin/unbound
34 + evaluate_retval
35 + ;;
36 +
37 + stop)
38 + log_info_msg "Stopping Unbound DNS resolver..."
39 + killproc -p "/run/unbound.pid" /usr/sbin/unbound
40 + evaluate_retval
41 + ;;
42 +
43 + restart)
44 + $0 stop
45 + sleep 1
46 + $0 start
47 + ;;
48 +
49 + status)
50 + statusproc /usr/sbin/unbound
51 + ;;
52 +
53 + *)
54 + echo "Usage: $0 {start|stop|restart|status}"
55 + exit 1
56 + ;;
57 +esac
58 +
59 +# End unbound
0 60 new file mode 100644
@@ -0,0 +1,69 @@
1 +#!/bin/sh
2 +########################################################################
3 +# Begin exim
4 +#
5 +# Description : Starts Virtuoso Universal
6 +#
7 +# Author : Bruce Dubbs - bdubbs@linuxfromscratch.org
8 +#
9 +# Version : LFS 7.2
10 +#
11 +########################################################################
12 +
13 +### BEGIN INIT INFO
14 +# Provides: virtuoso
15 +# Required-Start: $syslog $local_fs $network
16 +# Should-Start: $remote_fs
17 +# Required-Stop: $network
18 +# Should-Stop: $remote_fs
19 +# Default-Start: 3 4 5
20 +# Default-Stop: 0 1 2 6
21 +# Short-Description: Controls virtuoso data server
22 +# Description: Controls virtuoso data server
23 +# X-LFS-Provided-By: BLFS / LFS 7.2
24 +### END INIT INFO
25 +
26 +. /lib/lsb/init-functions
27 +
28 +#$LastChangedBy: bdubbs $
29 +#$Date: 2012-05-10 17:27:43 -0500 (Thu, 10 May 2012) $
30 +
31 +virtuoso_db="/var/lib/virtuoso/db"
32 +
33 +case "$1" in
34 + start)
35 + log_info_msg "Starting Virtuoso Universal Server..."
36 + cd $virtuoso_db
37 + start_daemon /usr/bin/virtuoso-t
38 + evaluate_retval
39 + ;;
40 +
41 + stop)
42 + log_info_msg "Stopping Virtuoso Universal Server..."
43 + killproc /usr/bin/virtuoso-t
44 + evaluate_retval
45 + ;;
46 +
47 + reload)
48 + log_info_msg "Reloading Virtuoso Universal Server..."
49 + killproc /usr/bin/virtuoso-t -HUP
50 + evaluate_retval
51 + ;;
52 +
53 + restart)
54 + $0 stop
55 + sleep 1
56 + $0 start
57 + ;;
58 +
59 + status)
60 + statusproc /usr/bin/virtuoso-t
61 + ;;
62 +
63 + *)
64 + echo "Usage: $0 {start|stop|reload|restart|status}"
65 + exit 1
66 + ;;
67 +esac
68 +
69 +# End /etc/init.d/virtuoso
0 70 new file mode 100644
@@ -0,0 +1,66 @@
1 +#!/bin/sh
2 +########################################################################
3 +# Begin /etc/init.d/vsftpd
4 +#
5 +# Description : Start Very Secure FTP Daemon
6 +#
7 +# Author : Bruce Dubbs - bdubbs@linuxfromscratch.org
8 +#
9 +# Version : LFS 7.0
10 +#
11 +########################################################################
12 +
13 +### BEGIN INIT INFO
14 +# Provides: ftpd
15 +# Required-Start: $remote_fs
16 +# Should-Start:
17 +# Required-Stop: $remote_fs
18 +# Should-Stop:
19 +# Default-Start: 3 4 5
20 +# Default-Stop: 0 1 2 6
21 +# Short-Description: Starts vsftpd server.
22 +# Description: Starts Very Secure FTP Daemon (vsftpd).
23 +# X-LFS-Provided-By: LFS
24 +### END INIT INFO
25 +
26 +. /lib/lsb/init-functions
27 +
28 +#$LastChangedBy: bdubbs $
29 +#$Date: 2011-12-05 20:37:16 -0600 (Mon, 05 Dec 2011) $
30 +
31 +case "$1" in
32 + start)
33 + log_info_msg "Starting vsFTPD Server..."
34 + start_daemon /usr/sbin/vsftpd
35 + evaluate_retval
36 + ;;
37 +
38 + stop)
39 + log_info_msg "Stopping vsFTPD Server..."
40 + killproc /usr/sbin/vsftpd
41 + evaluate_retval
42 + ;;
43 +
44 + reload)
45 + log_info_msg "Reloading vsFTPD Server..."
46 + killproc /usr/sbin/vsftpd -HUP
47 + evaluate_retval
48 + ;;
49 +
50 + restart)
51 + $0 stop
52 + sleep 1
53 + $0 start
54 + ;;
55 +
56 + status)
57 + statusproc /usr/sbin/vsftpd
58 + ;;
59 +
60 + *)
61 + echo "Usage: $0 {start|stop|reload|restart|status}"
62 + exit 1
63 + ;;
64 +esac
65 +
66 +# End /etc/init.d/vsftpd
0 67 new file mode 100644
@@ -0,0 +1,77 @@
1 +#!/bin/sh
2 +########################################################################
3 +# Begin wicd
4 +#
5 +# Description : Wicd bootscript
6 +#
7 +# Authors : Ragnar Thomsen - rthomsen@linuxfromscratch.org
8 +#
9 +# Version : LFS 7.1
10 +#
11 +########################################################################
12 +
13 +### BEGIN INIT INFO
14 +# Provides:
15 +# Required-Start:
16 +# Should-Start:
17 +# Required-Stop:
18 +# Should-Stop:
19 +# Default-Start: 2 3 4 5
20 +# Default-Stop: 0 1 6
21 +# Short-Description: Starts the wicd daemon.
22 +# Description: Starts the wicd daemon
23 +# X-LFS-Provided-By: LFS
24 +### END INIT INFO
25 +
26 +. /lib/lsb/init-functions
27 +PIDFILE="/var/run/wicd/wicd.pid"
28 +
29 +case "${1}" in
30 + start)
31 + if [ -e $PIDFILE ]; then
32 + echo "Wicd appears to already be running."
33 + echo "If this is not the case, then remove"
34 + echo "$PIDFILE and try again..."
35 + else
36 + log_info_msg "Starting wicd daemon..."
37 + start_daemon /usr/sbin/wicd 1>/dev/null
38 + evaluate_retval
39 + fi
40 + ;;
41 +
42 + stop)
43 + log_info_msg "Stopping wicd daemon..."
44 + if [ -e $PIDFILE ]; then
45 + # Shut down wpa_supplicant and any started dhcp
46 + # clients before we kill Wicd
47 + wicd-cli -xyz 1>/dev/null
48 + kill $(cat $PIDFILE)
49 + evaluate_retval
50 + else
51 + echo "Wicd appears not to be running..."
52 + fi
53 + ;;
54 +
55 + restart)
56 + ${0} stop
57 + sleep 1
58 + ${0} start
59 + ;;
60 +
61 + status)
62 + if [ -e $PIDFILE ]; then
63 + echo "Wicd is running with pid $(cat $PIDFILE)"
64 + else
65 + echo "Wicd appears not to be running..."
66 + fi
67 + ;;
68 +
69 + *)
70 + echo "Usage: ${0} {start|stop|restart|status}"
71 + exit 1
72 + ;;
73 +esac
74 +
75 +exit 0
76 +
77 +# End wicd
0 78 new file mode 100644
@@ -0,0 +1,64 @@
1 +#!/bin/sh
2 +# Begin /etc/init.d/winbindd
3 +
4 +### BEGIN INIT INFO
5 +# Provides: winbindd
6 +# Required-Start: samba
7 +# Should-Start:
8 +# Required-Stop: samba
9 +# Should-Stop:
10 +# Default-Start: 3 4 5
11 +# Default-Stop: 0 1 2 6
12 +# Short-Description: Provides Name Server Switch (NSS) capabilities to Samba.
13 +# Description: Starts the winbindd daemon to provide
14 +# Name Server Swithch (NSS) capabilities to Samba.
15 +# X-LFS-Provided-By: BLFS
16 +### END INIT INFO
17 +
18 +. /lib/lsb/init-functions
19 +
20 +#$LastChangedBy: bdubbs $
21 +#$Date: 2012-08-26 15:15:30 -0500 (Sun, 26 Aug 2012) $
22 +
23 +PIDFILE=/var/run/winbindd.pid
24 +
25 +case "$1" in
26 + start)
27 + log_info_msg "Starting winbindd..."
28 + start_daemon /usr/sbin/winbindd
29 + evaluate_retval
30 + ;;
31 +
32 + stop)
33 + log_info_msg "Stopping winbindd..."
34 + killproc -p ${PIDFILE} /usr/sbin/winbindd
35 + evaluate_retval
36 +
37 + log_info_msg "Stopping nmbd..."
38 + killproc /usr/sbin/nmbd
39 + evaluate_retval
40 + ;;
41 +
42 + reload)
43 + log_info_msg "Reloading smbd..."
44 + killproc /usr/sbin/winbindd -HUP
45 + evaluate_retval
46 + ;;
47 +
48 + restart)
49 + $0 stop
50 + sleep 1
51 + $0 start
52 + ;;
53 +
54 + status)
55 + statusproc /usr/sbin/winbindd
56 + ;;
57 +
58 + *)
59 + echo "Usage: $0 {start|stop|reload|restart|status}"
60 + exit 1
61 + ;;
62 +esac
63 +
64 +# End /etc/init.d/winbindd
0 65 new file mode 100644
@@ -0,0 +1,67 @@
1 +#!/bin/sh
2 +########################################################################
3 +# Begin xinetd
4 +#
5 +# Description : Start xinetd super server daemon
6 +#
7 +# Author : Bruce Dubbs - bdubbs@linuxfromscratch.org
8 +#
9 +# Version : LFS 7.2
10 +#
11 +########################################################################
12 +
13 +### BEGIN INIT INFO
14 +# Provides: xinetd
15 +# Required-Start: $network
16 +# Should-Start:
17 +# Required-Stop: $network
18 +# Should-Stop:
19 +# Default-Start: 3 4 5
20 +# Default-Stop: 0 1 2 6
21 +# Short-Description: Starts the xinetd daemon.
22 +# Description: Starts the xinetd super server daemon to llisten to
23 +# specified incoming tcp and udp ports and execute
24 +# the configured service.
25 +# X-LFS-Provided-By: BLFS / LFS 7.2
26 +### END INIT INFO
27 +
28 +. /lib/lsb/init-functions
29 +
30 +#$LastChangedBy: dj $
31 +#$Date: 2011-12-05 01:38:40 -0600 (Mon, 05 Dec 2011) $
32 +
33 +case "$1" in
34 + start)
35 + log_info_msg "Starting xinetd..."
36 + start_daemon /usr/sbin/xinetd
37 + evaluate_retval
38 + ;;
39 +
40 + stop)
41 + log_info_msg "Stopping xinetd..."
42 + killproc /usr/sbin/xinetd
43 + evaluate_retval
44 + ;;
45 +
46 + reload)
47 + log_info_msg "Reloading xinetd..."
48 + killproc /usr/sbin/xinetd -HUP
49 + ;;
50 +
51 + restart)
52 + $0 stop
53 + sleep 1
54 + $0 start
55 + ;;
56 +
57 + status)
58 + statusproc /usr/sbin/xinetd
59 + ;;
60 +
61 + *)
62 + echo "Usage: $0 {start|stop|reload|restart|status}"
63 + exit 1
64 + ;;
65 +esac
66 +
67 +# End /etc/init.d/xinetd
0 68 new file mode 100644
@@ -0,0 +1,76 @@
1 +#!/bin/sh
2 +########################################################################
3 +# Begin /lib/services/bridge
4 +#
5 +# Description : Bridge Boot Script
6 +#
7 +# Authors : Nathan Coulson - nathan@linuxfromscratch.org
8 +# Bruce Dubbs - bdubbs@linuxfromscratch.org
9 +#
10 +# Version : LFS-7.2
11 +#
12 +########################################################################
13 +
14 +. /lib/lsb/init-functions
15 +. ${IFCONFIG}
16 +
17 +# Make compatible with older versions of init-functions
18 +unset is_true
19 +
20 +is_true()
21 +{
22 + [ "$1" = "1" ] || [ "$1" = "yes" ] || [ "$1" = "true" ] ||
23 + [ "$1" = "y" ] || [ "$1" = "t" ]
24 +}
25 +
26 +if [ -z "${INTERFACE_COMPONENTS}" ]; then
27 + log_failure_msg "INTERFACE_COMPONENTS variable missing from ${IFCONFIG}"
28 + exit 1
29 +fi
30 +
31 +case "${2}" in
32 + up)
33 + log_info_msg2 "\n"
34 + log_info_msg "Creating the ${1} interface..."
35 + brctl addbr ${1}
36 + evaluate_retval
37 +
38 + for I in ${INTERFACE_COMPONENTS}; do
39 + log_info_msg "Adding ${I} to ${1}..."
40 + brctl addif ${1} ${I}
41 + evaluate_retval
42 + done
43 +
44 + if is_true ${STP}; then
45 + brctl stp ${1} on
46 + log_success_msg "Setting spanning tree protocol"
47 + fi
48 +
49 + if is_true ${IP_FORWARD}; then
50 + sysctl -w net.ipv4.ip_forward=1 > /dev/null
51 + log_success_msg "Setting net.ipv4.ip_forward = 1"
52 + fi
53 + ;;
54 +
55 + down)
56 + for I in ${INTERFACE_COMPONENTS}; do
57 + log_info_msg "Removing ${I} from ${1}..."
58 + ip link set ${I} down &&
59 + brctl delif ${1} ${I}
60 + evaluate_retval
61 + done
62 +
63 + log_info_msg "Bringing down the ${1} interface..."
64 + ip link set ${1} down
65 + brctl delbr ${1}
66 + evaluate_retval
67 + ;;
68 +
69 + *)
70 + echo "Usage: ${0} [interface] {up|down}"
71 + exit 1
72 + ;;
73 +esac
74 +
75 +# End /lib/services/bridge
76 +
0 77 new file mode 100644
@@ -0,0 +1,119 @@
1 +#!/bin/sh
2 +# Begin services/dhclient
3 +
4 +# Origianlly based upon lfs-bootscripts-1.12 $NETWORK_DEVICES/if{down,up}
5 +# Rewritten by Nathan Coulson <nathan@linuxfromscratch.org>
6 +# Adapted for dhclient by DJ Lucas <dj@linuxfromscratch.org>
7 +# Update for LFS 7.0 by Ken Moffat <ken@linuxfromscratch.org>
8 +
9 +# Call with: IFCONFIG=<filename> /lib/services/dhclient <IFACE> <up | down>
10 +
11 +#$LastChangedBy: bdubbs $
12 +#$Date: 2014-08-27 13:01:33 -0500 (Wed, 27 Aug 2014) $
13 +
14 +. /lib/lsb/init-functions
15 +. $IFCONFIG
16 +
17 +PIDFILE=/run/dhclient-$1.pid
18 +LFILE=/var/lib/dhclient/dhclient-$1.leases
19 +
20 +getipstats()
21 +{
22 + # Print the last 16 lines of dhclient.leases
23 + sed -e :a -e '$q;N;17,$D;ba' ${LFILE}
24 +}
25 +
26 +# Make compatible with older versions of init-functions
27 +unset is_true
28 +
29 +is_true()
30 +{
31 + [ "$1" = "1" ] || [ "$1" = "yes" ] || [ "$1" = "true" ] ||
32 + [ "$1" = "y" ] || [ "$1" = "t" ]
33 +}
34 +
35 +case "$2" in
36 + up)
37 +
38 + if [ -e ${PIDFILE} ]; then
39 + ps $(cat ${PIDFILE}) | grep dhclient >/dev/null
40 + if [ "$?" = "0" ]; then
41 + log_warning_msg "\n dhclient appears to be running on $1"
42 + exit 0
43 + else
44 + rm ${PIDFILE}
45 + fi
46 + fi
47 +
48 + log_info_msg "\n Starting dhclient on the $1 interface..."
49 +
50 + /sbin/dhclient -lf ${LFILE} -pf ${PIDFILE} $DHCP_START $1
51 +
52 + if [ "$?" != "0" ]; then
53 + log_failure_msg2
54 + exit 1
55 + fi
56 +
57 + # Print the assigned settings if requested
58 + if is_true "$PRINTIP" -o is_true "$PRINTALL"; then
59 + # Get info from dhclient.leases file
60 +
61 + IPADDR=`getipstats | grep "fixed-address" | \
62 + sed 's/ fixed-address //' | \
63 + sed 's/\;//'`
64 +
65 + NETMASK=`getipstats | grep "subnet-mask" | \
66 + sed 's/ option subnet-mask //' | \
67 + sed 's/\;//'`
68 +
69 + GATEWAY=`getipstats | grep "routers" | \
70 + sed 's/ option routers //' | \
71 + sed 's/\;//'`
72 +
73 + DNS=`getipstats | grep "domain-name-servers" | \
74 + sed 's/ option domain-name-servers //' | \
75 + sed 's/\;//' | sed 's/,/ and /'`
76 +
77 + if [ "$PRINTALL" = "yes" ]; then
78 + # This is messy, the messages are on one very long
79 + # line on the screen and in the log
80 + log_info_msg " DHCP Assigned Settings for $1:"
81 + log_info_msg " IP Address: $IPADDR"
82 + log_info_msg " Subnet Mask: $NETMASK"
83 + log_info_msg " Default Gateway: $GATEWAY"
84 + log_info_msg " DNS Server: $DNS"
85 + else
86 + log_info_msg " IP Addresss:""$IPADDR"
87 + fi
88 + fi
89 +
90 + log_success_msg2
91 + ;;
92 +
93 + down)
94 + if [ ! -e ${PIDFILE} ]; then
95 + log_warning_msg "\n dhclient doesn't appear to be running on $1"
96 + exit 0
97 + fi
98 +
99 + log_info_msg "\n Stopping dhclient on the $1 interface..."
100 +
101 + /sbin/dhclient -r -lf ${LFILE} -pf ${PIDFILE} $DHCP_STOP $1
102 +
103 + if [ -e ${PIDFILE} ]; then
104 + ps $(cat ${PIDFILE}) | grep dhclient >/dev/null
105 + if [ "$?" != "0" ]; then
106 + rm -f ${PIDFILE}
107 + fi
108 + fi
109 +
110 + evaluate_retval
111 + ;;
112 +
113 + *)
114 + echo "Usage: $0 [interface] {up|down}"
115 + exit 1
116 + ;;
117 +esac
118 +
119 +# End services/dhclient
0 120 new file mode 100644
@@ -0,0 +1,69 @@
1 +#!/bin/bash
2 +# Begin services/dhcpcd
3 +
4 +# Origianlly dased upon lfs-bootscripts-1.12 $NETWORK_DEVICES/if{down,up}
5 +# Rewritten by Nathan Coulson <nathan@linuxfromscratch.org>
6 +# Adapted for dhcpcd by DJ Lucas <dj@linuxfromscratch.org>
7 +# Update for LFS 7.0 by Bruce Dubbs <bdubbs@linuxfromscratch,org>
8 +
9 +# Call with: IFCONFIG=<filename> /lib/services/dhcpcd <IFACE> <up | down>
10 +
11 +#$LastChangedBy: bdubbs $
12 +#$Date: 2012-04-09 14:48:51 -0500 (Mon, 09 Apr 2012) $
13 +
14 +. /lib/lsb/init-functions
15 +. $IFCONFIG
16 +
17 +pidfile="/var/run/dhcpcd-$1.pid"
18 +
19 +case "$2" in
20 + up)
21 + # Cosmetic output not needed for multiple services
22 + if ! $(echo ${SERVICE} | grep -q " "); then
23 + log_info_msg2 "\n" # Terminate the previous message
24 + fi
25 +
26 + log_info_msg "Starting dhcpcd on the $1 interface..."
27 +
28 + # Test to see if there is a stale pid file
29 + if [ -f "$pidfile" ]; then
30 + ps `cat "$pidfile"` | grep dhcpcd > /dev/null
31 +
32 + if [ $? != 0 ]; then
33 + rm -f /var/run/dhcpcd-$1.pid > /dev/null
34 +
35 + else
36 + log_warning_msg "dhcpcd is already running!"
37 + exit 2
38 + fi
39 + fi
40 +
41 + /usr/sbin/dhcpcd $1 $DHCP_START
42 + evaluate_retval
43 + ;;
44 +
45 + down)
46 + log_info_msg "Stopping dhcpcd on the $1 interface..."
47 +
48 + if [ -z "$DHCP_STOP" ]; then
49 + killproc -p "${pidfile}" /usr/sbin/dhcpcd
50 +
51 + else
52 + /usr/sbin/dhcpcd $1 $DHCP_STOP &> /dev/null
53 +
54 + if [ "$?" -eq 1 ]; then
55 + log_warning_msg "dhcpcd not running!"
56 + exit 2
57 + fi
58 + fi
59 +
60 + evaluate_retval
61 + ;;
62 +
63 + *)
64 + echo "Usage: $0 [interface] {up|down}"
65 + exit 1
66 + ;;
67 +esac
68 +
69 +# End services/dhcpcd
0 70 new file mode 100644
@@ -0,0 +1,96 @@
1 +#!/bin/bash
2 +# Begin services/wpa
3 +
4 +# Origianlly based upon lfs-bootscripts-1.12 $NETWORK_DEVICES/if{down,up}
5 +# Written by Armin K. <krejzi at email dot com>
6 +
7 +# Call with: IFCONFIG=<filename> /lib/services/wpa <IFACE> <up | down>
8 +
9 +#$LastChangedBy: bdubbs $
10 +#$Date: 2016-09-02 23:10:02 -0500 (Fri, 02 Sep 2016) $
11 +
12 +. /lib/lsb/init-functions
13 +. $IFCONFIG
14 +
15 +CFGFILE=/etc/sysconfig/wpa_supplicant-${IFCONFIG##*.}.conf
16 +PIDFILE=/run/wpa_supplicant/$1.pid
17 +CONTROL_IFACE=/run/wpa_supplicant/$1
18 +
19 +case "$2" in
20 + up)
21 +
22 + if [ -e ${PIDFILE} ]; then
23 + ps $(cat ${PIDFILE}) | grep wpa_supplicant >/dev/null
24 + if [ "$?" = "0" ]; then
25 + log_warning_msg "\n wpa_supplicant already running on $1."
26 + exit 0
27 + else
28 + rm ${PIDFILE}
29 + fi
30 + fi
31 +
32 + if [ ! -e ${CFGFILE} ]; then
33 + log_info_msg "\n wpa_supplicant configuration file ${CFGFILE} not present"
34 + log_failure_msg2
35 + exit 1
36 + fi
37 +
38 + # Only specify -C on command line if it is not in CFGFILE
39 + if ! grep -q ctrl_interface ${CFGFILE}; then
40 + WPA_ARGS="-C/run/wpa_supplicant ${WPA_ARGS}"
41 + fi
42 +
43 + log_info_msg "\n Starting wpa_supplicant on the $1 interface..."
44 +
45 + mkdir -p /run/wpa_supplicant
46 +
47 + /sbin/wpa_supplicant -q -B -Dnl80211,wext -P${PIDFILE} \
48 + -c${CFGFILE} -i$1 ${WPA_ARGS}
49 +
50 + if [ "$?" != "0" ]; then
51 + log_failure_msg2
52 + exit 1
53 + fi
54 +
55 + log_success_msg2
56 +
57 + if [ -n "${WPA_SERVICE}" ]; then
58 + if [ ! -e /lib/services/${WPA_SERVICE} -a \
59 + ! -x /lib/services/${WPA_SERVICE} ]; then
60 + log_info_msg "\n Cannot start ${WPA_SERVICE} on $1"
61 + log_failure_msg2
62 + exit 1
63 + fi
64 +
65 + IFCONFIG=${IFCONFIG} /lib/services/${WPA_SERVICE} $1 up
66 + fi
67 + ;;
68 +
69 + down)
70 + if [ -n "${WPA_SERVICE}" ]; then
71 + if [ ! -e /lib/services/${WPA_SERVICE} -a ! -x /lib/services/${WPA_SERVICE} ]; then
72 + log_warning_msg "\n Cannot stop ${WPA_SERVICE} on $1"
73 + else
74 + IFCONFIG=${IFCONFIG} /lib/services/${WPA_SERVICE} $1 down
75 + fi
76 + fi
77 +
78 + log_info_msg "\n Stopping wpa_supplicant on the $1 interface..."
79 +
80 + if [ -e ${PIDFILE} ]; then
81 + kill -9 $(cat ${PIDFILE})
82 + rm -f ${PIDFILE} ${CONTROL_IFACE}
83 + evaluate_retval
84 + else
85 + log_warning_msg "\n wpa_supplicant already stopped on $1"
86 + exit 0
87 + fi
88 + ;;
89 +
90 + *)
91 + echo "Usage: $0 [interface] {up|down}"
92 + exit 1
93 + ;;
94 +esac
95 +
96 +# End services/wpa
0 97 new file mode 100644
@@ -0,0 +1,23 @@
1 +#!/bin/bash
2 +#
3 +# Autofs configuration file
4 +#
5 +# Filename: /etc/sysconfig/autofs.conf
6 +#
7 +# Author: Bryan Mason
8 +#
9 +# Edit History:
10 +#
11 +# Date Author Action
12 +# ----------------------------------------------------------------------
13 +# 19 Jan 2004 B. Mason Created
14 +# 18 Oct 2004 L. Lawrence Assume /usr is not mounted, add timeout
15 +
16 +automount=/sbin/automount
17 +localoptions=''
18 +daemonoptions='--timeout 60'
19 +piddir=/var/run
20 +pidroot=autofs
21 +
22 +# END
23 +
0 24 new file mode 100644
@@ -0,0 +1,11 @@
1 +# Begin /etc/sysconfig/bluetooth
2 +
3 +# A space delimied list of devices to start at boot time
4 +ACTIVE_HCI_DEVICES_ON_BOOT="hci0"
5 +
6 +# A semicolon delimited list of SDP (Service Discovery Protocol)
7 +# operations for bluetooth devices. See the sdptool for more
8 +# details.
9 +SDPTOOL_OPTIONS=""
10 +
11 +# End /etc/sysconfig/bluetooth
0 12 new file mode 100644
@@ -0,0 +1,11 @@
1 +# Begin /etc/sysconfig/dhcpd
2 +
3 +# On which interfaces should the DHCP Server (dhcpd) serve DHCP requests?
4 +# Separate multiple interfaces with spaces, e.g. "eth0 eth1".
5 +INTERFACES=""
6 +
7 +# Additional options that you want to pass to the DHCP Server Daemon?
8 +OPTIONS=""
9 +
10 +# End /etc/sysconfig/dhcpd
11 +
0 12 new file mode 100644
@@ -0,0 +1,32 @@
1 +# Begin /etc/sysconfig/saslauthd
2 +
3 +# Change this to "yes" and select authentification mechanism below
4 +# to enable saslauthd
5 +
6 +START="no"
7 +
8 +# Which authentification mechanism should saslauthd use?
9 +#
10 +# These are some of the available options:
11 +# kerberos5 -- use Kerberos 5 (available if you compiled saslauthd with
12 +# MIT Kerberos5 support).
13 +# pam -- use PAM (available if you compiled saslauthd with
14 +# Linux PAM support).
15 +# shadow -- use the local shadow password file
16 +# sasldb -- use the local sasldb database file
17 +# ldap -- use LDAP (configuration is in /etc/saslauthd.conf)
18 +# (Available only if you compiled saslauthd with
19 +# OpenLDAP support and with --enable-ldapdb configure switch).
20 +#
21 +# Alternatively, you can run /usr/sbin/pluginviewer to see which plugins
22 +# are available.
23 +
24 +AUTHMECH=""
25 +
26 +# Add any aditional options you want to pass to saslauthd command line.
27 +# See man 8 saslauthd for more information
28 +
29 +OPTIONS=""
30 +
31 +# End /etc/sysconfig/saslauthd
32 +
0 33 new file mode 100644
@@ -0,0 +1,13 @@
1 +# Begin /etc/sysconfig/slapd
2 +
3 +# slapd normally serves ldap only on all TCP-ports 389. slapd can also
4 +# service requests on TCP-port 636 (ldaps) and requests via unix
5 +# sockets.
6 +# Example usage:
7 +#SLAPD_SERVICES="ldap://127.0.0.1:389/ ldaps:/// ldapi:///"
8 +
9 +# Add any aditional options you want to pass to slapd command line.
10 +# See man 8 slapd for more information
11 +SLAPD_OPTIONS=""
12 +
13 +# End /etc/sysconfig/slapd