10.0
10.0-rc1
10.1
10.1-rc1
11.0
11.0-rc1
11.0-rc2
11.0-rc3
11.1
11.1-rc1
11.2
11.2-rc1
11.3
11.3-rc1
12.0
12.0-rc1
12.1
12.1-rc1
7.0
7.1
7.2
7.3
7.4
7.5
7.5-systemd
7.6
7.6-systemd
7.7
7.7-systemd
7.8
7.8-systemd
7.9
7.9-systemd
8.0
8.1
8.2
8.3
8.4
9.0
9.1
arm
bdubbs/gcc13
ml-11.0
multilib
renodr/libudev-from-systemd
s6-init
trunk
xry111/arm64
xry111/arm64-12.0
xry111/clfs-ng
xry111/lfs-next
xry111/loongarch
xry111/loongarch-12.0
xry111/loongarch-12.1
xry111/mips64el
xry111/pip3
xry111/rust-wip-20221008
xry111/update-glibc
Line | |
---|
1 | #!/bin/sh
|
---|
2 | ########################################################################
|
---|
3 | # Begin scriptname
|
---|
4 | #
|
---|
5 | # Description :
|
---|
6 | #
|
---|
7 | # Authors :
|
---|
8 | #
|
---|
9 | # Version : LFS x.x
|
---|
10 | #
|
---|
11 | # Notes :
|
---|
12 | #
|
---|
13 | ########################################################################
|
---|
14 |
|
---|
15 | ### BEGIN INIT INFO
|
---|
16 | # Provides: template
|
---|
17 | # Required-Start:
|
---|
18 | # Should-Start:
|
---|
19 | # Required-Stop:
|
---|
20 | # Should-Stop:
|
---|
21 | # Default-Start:
|
---|
22 | # Default-Stop:
|
---|
23 | # Short-Description:
|
---|
24 | # Description:
|
---|
25 | # X-LFS-Provided-By:
|
---|
26 | ### END INIT INFO
|
---|
27 |
|
---|
28 | . /lib/boot/functions
|
---|
29 |
|
---|
30 | case "${1}" in
|
---|
31 | start)
|
---|
32 | boot_mesg "Starting..."
|
---|
33 | loadproc
|
---|
34 | ;;
|
---|
35 |
|
---|
36 | stop)
|
---|
37 | boot_mesg "Stopping..."
|
---|
38 | killproc
|
---|
39 | ;;
|
---|
40 |
|
---|
41 | reload)
|
---|
42 | boot_mesg "Reloading..."
|
---|
43 | reloadproc
|
---|
44 | ;;
|
---|
45 |
|
---|
46 | restart)
|
---|
47 | ${0} stop
|
---|
48 | sleep 1
|
---|
49 | ${0} start
|
---|
50 | ;;
|
---|
51 |
|
---|
52 | status)
|
---|
53 | statusproc
|
---|
54 | ;;
|
---|
55 |
|
---|
56 | *)
|
---|
57 | echo "Usage: ${0} {start|stop|reload|restart|status}"
|
---|
58 | exit 1
|
---|
59 | ;;
|
---|
60 | esac
|
---|
61 |
|
---|
62 | # End scriptname
|
---|
Note:
See
TracBrowser
for help on using the repository browser.