mirror of
https://gitlab.com/niansa/simpsh-httpd.git
synced 2025-03-06 20:53:36 +01:00
Delete simpsh-httpd.service
This commit is contained in:
parent
27ef70d336
commit
fcac6f6e6d
1 changed files with 0 additions and 42 deletions
|
@ -1,42 +0,0 @@
|
|||
#!/bin/sh
|
||||
# Start/stop the cron daemon.
|
||||
#
|
||||
### BEGIN INIT INFO
|
||||
# Provides: simpsh-httpd
|
||||
# Required-Start: $network
|
||||
# Required-Stop:
|
||||
# Default-Start: 2 3 4 5
|
||||
# Default-Stop: 0 1 6
|
||||
# Short-Description: simpsh-httpd
|
||||
# Description: simpsh-httpd is a simple webserver
|
||||
### END INIT INFO
|
||||
|
||||
|
||||
test -f /usr/share/simpsh-httpd/start-socat.sh || exit 0
|
||||
test -f /usr/bin/simpsh-httpd-socat || exit 0
|
||||
|
||||
#LSBNAMES='-l' # Uncomment for LSB name support in /etc/cron.d/
|
||||
|
||||
. /lib/lsb/init-functions
|
||||
|
||||
case "$1" in
|
||||
start) log_daemon_msg "Starting simpsh-httpd" "simpsh-httpd"
|
||||
start-stop-daemon --start --quiet --name simpsh-httpd --pidfile /run/lock/simpsh-httpd.pid --startas /bin/bash /usr/bin/simpsh-httpd-socat -- $LSBNAMES
|
||||
log_end_msg $?
|
||||
;;
|
||||
stop) log_daemon_msg "Stoping simpsh-httpd" "simpsh-httpd"
|
||||
cat /run/lock/simpsh-httpd.lock | xargs kill -SIGKILL
|
||||
rm /run/lock/simpsh-httpd.lock
|
||||
log_end_msg $?
|
||||
;;
|
||||
restart) log_daemon_msg "Restarting simpsh-httpd" "simpsh-httpd"
|
||||
/etc/init.d/simpsh-httpd.sh stop
|
||||
sleep 2
|
||||
/etc/init.d/simpsh-httpd.sh start
|
||||
log_end_msg $?
|
||||
;;
|
||||
*) log_action_msg "Usage: /etc/init.d/cron {start|stop|restart|reload|force-reload}"
|
||||
exit 2
|
||||
;;
|
||||
esac
|
||||
exit 0
|
Loading…
Add table
Reference in a new issue