-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsysmond.bootscript
executable file
·57 lines (49 loc) · 1.28 KB
/
sysmond.bootscript
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/sh
########################################################################
# Begin sysmond
#
# Description : Start sysmond daemon
#
# Author : Bruce Dubbs - [email protected]
#
# Version : BLFS 12.2
#
########################################################################
### BEGIN INIT INFO
# Provides: sysmond
# Required-Start: $network
# Should-Start: networkmanager wicd
# Required-Stop: $network
# Should-Stop: networkmanager wicd
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts sysmond daemon.
# Description: Starts sysmond daemon.
# X-LFS-Provided-By: BLFS
### END INIT INFO
. /lib/lsb/init-functions
case "$1" in
start)
log_info_msg "Starting sysmond Server..."
start_daemon /usr/sbin/sysmond
evaluate_retval
;;
stop)
log_info_msg "Stopping sysmond Server..."
killproc -p "/run/sysmond.pid" /usr/sbin/sysmond
evaluate_retval
;;
restart)
$0 stop
sleep 1
$0 start
;;
status)
statusproc -p "/run/sysmond.pid" /usr/sbin/sysmond
;;
*)
echo "Usage: $0 {start|stop|restart|status}"
exit 1
;;
esac
# End sysmond bootscript