blob: 720739a1c671506f2eb5af8ae21d08ef4ac5d423 (
plain)
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
|
#!/bin/bash
NAME=openrc-settingsd
host=$(hostname -s)
start() {
echo "Starting Openrc-Settingsd Services: "
/usr/libexec/$NAME --syslog > /dev/null 2>&1 &
}
stop() {
echo "Stopping Openrc-Settingsd Services: "
#Find the Process ID for openrc-settingsd running instance
ps -ef | grep openrc-settingsd | grep -v grep | awk '{print $2}' | xargs kill
}
restart() {
stop
sleep 3
start
}
case "$1" in
start) start ;;
stop) stop ;;
restart) stop; start ;;
*) echo "usage: $0 start|stop|restart" >&2
exit 1
;;
esac
|