rc status added and init scripts fixed

This commit is contained in:
wt committed 2024-07-09 13:43:01 +07:00
1 parent 9990e60387
commit 2e1b587226
8 files changed
+54 -4

No files matched your search

+2 -2
View File
@@ -6,13 +6,13 @@ case "$1" in
start)
notify "Starting httpd "
httpd -h /srv/www &> /dev/null
echo $! > /var/run/httpd.pid
check $?
;;
stop)
notify "Stopping httpd "
killall httpd
#kill $(cat /var/run/httpd.pid)
#rm /var/run/httpd.pid
rm /var/run/httpd.pid
check $?
;;
restart|reload)