update scripts

This commit is contained in:
wt committed 2024-11-01 14:15:42 +07:00
1 parent 95e2551110
commit 4a8ea1b190
17 files changed
+381 -126

No files matched your search

+17 -13
View File
@@ -5,20 +5,24 @@
. /usr/lib/init/init-funcs.sh
#------------------------------------
start() {
notify "Starting syslogd"
/usr/bin/syslogd
check $? "start syslogd"
return $?
}
stop() {
notify "Stopping syslogd"
kill $(cat /var/run/syslogd.pid)
check $? "stop syslogd"
rm /var/run/syslogd.pid &> /dev/null
return $?
}
case "$1" in
start)
printf "$BBLUE**$BYELLOW Starting syslogd\n$RESET"
/usr/bin/syslogd
check $? "start syslogd"
;;
stop)
printf "$BBLUE**$BYELLOW Stopping syslogd\n$RESET"
kill $(cat /var/run/syslogd.pid)
check $? "stop syslogd"
rm /var/run/syslogd.pid &> /dev/null
;;
restart|reload)
restart
start|stop|restart|reload|help)
"$1"
;;
*)
help