rootfs added and auth service in
This commit is contained in:
1 parent
35bd73b894
commit
1bea37deb2
113 files changed
+1369
-24
No files matched your search
@@ -0,0 +1,38 @@
|
||||
#!/bin/sh
|
||||
Green='\033[0;32m'
|
||||
Color_off='\033[0m'
|
||||
Red='\033[0;31m'
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
printf "Starting syslogd "
|
||||
syslogd
|
||||
if [[ "$?" == "0" ]]; then
|
||||
printf "[$Green OK $Color_off]\n"
|
||||
else
|
||||
printf "[$Red ERR $Color_off]\n"
|
||||
fi
|
||||
;;
|
||||
stop)
|
||||
printf "Stopping syslogd "
|
||||
if [ -f /var/run/syslogd.pid ]; then
|
||||
kill $(cat /var/run/syslogd.pid)
|
||||
if [[ "$?" == "0" ]]; then
|
||||
printf "[$Green OK $Color_off]\n"
|
||||
else
|
||||
printf "[$Red ERR $Color_off]\n"
|
||||
fi
|
||||
rm /var/run/syslogd.pid &> /dev/null
|
||||
else
|
||||
printf "[$Red Syslogd is not running $Color_off]\n"
|
||||
fi
|
||||
;;
|
||||
restart|reload)
|
||||
"$0" stop
|
||||
"$0" start
|
||||
;;
|
||||
*)
|
||||
echo "syslogd init script usage: $0 {start|stop|restart}"
|
||||
return 1
|
||||
esac
|
||||
return $?
|
||||
Reference in new issue
Block a user