mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-27 10:44:33 +00:00
Clean up init.d script, fix dependencies and indentation.
This commit is contained in:
parent
f5cd610535
commit
2f702d4736
@ -1,13 +1,14 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
### BEGIN INIT INFO
|
### BEGIN INIT INFO
|
||||||
# Provides: plinth
|
# Provides: plinth
|
||||||
# Required-Start: $syslog
|
# Required-Start: $network $remote_fs $syslog
|
||||||
# Required-Stop: $syslog
|
# Required-Stop: $remote_fs $syslog
|
||||||
# Default-Start: 2 3 4 5
|
# Default-Start: 2 3 4 5
|
||||||
# Default-Stop: 0 1 6
|
# Default-Stop: 0 1 6
|
||||||
# Short-Description: plinth web frontend
|
# Short-Description: plinth web frontend
|
||||||
# Description:
|
# Description:
|
||||||
#
|
# Control the exmachina privileged execution daemon and the plinth
|
||||||
|
# web frontend.
|
||||||
### END INIT INFO
|
### END INIT INFO
|
||||||
|
|
||||||
# This file is /etc/init.d/plinth
|
# This file is /etc/init.d/plinth
|
||||||
@ -71,7 +72,7 @@ case "$1" in
|
|||||||
echo "Stoping Plinth."
|
echo "Stoping Plinth."
|
||||||
stop_plinth
|
stop_plinth
|
||||||
;;
|
;;
|
||||||
restart)
|
restart|force-reload)
|
||||||
$0 stop
|
$0 stop
|
||||||
$0 start
|
$0 start
|
||||||
;;
|
;;
|
||||||
@ -79,8 +80,7 @@ case "$1" in
|
|||||||
status_of_proc -p $PID_FILE "$DAEMON" plinth && exit 0 || exit $?
|
status_of_proc -p $PID_FILE "$DAEMON" plinth && exit 0 || exit $?
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Usage: $NAME {start|stop|restart|status}" >&2
|
echo "Usage: $NAME {start|stop|restart|force-reload|status}" >&2
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
|
|
||||||
esac
|
esac
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user