mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 06:06:32 +00:00
stunnel: adjust initscript
Use proper status messages, make spacing standard instead of a mix of spacing/tabbing, drop boringly obvious comment from the header. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
48a9e431d8
commit
d98be88165
@ -1,18 +1,17 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
|
||||||
# Starts stunnel
|
|
||||||
#
|
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
echo -n "Starting stunnel: "
|
echo -n "Starting stunnel: "
|
||||||
start-stop-daemon -S -q -p /var/run/stunnel.pid --exec /usr/bin/stunnel
|
start-stop-daemon -S -q -p /var/run/stunnel.pid --exec /usr/bin/stunnel
|
||||||
echo "OK"
|
[ $? = 0 ] && echo "OK" || echo "FAIL"
|
||||||
}
|
}
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
echo -n "Stopping stunnel: "
|
echo -n "Stopping stunnel: "
|
||||||
start-stop-daemon -K -q -p /var/run/stunnel.pid
|
start-stop-daemon -K -q -p /var/run/stunnel.pid
|
||||||
echo "OK"
|
[ $? = 0 ] && echo "OK" || echo "FAIL"
|
||||||
}
|
}
|
||||||
|
|
||||||
restart() {
|
restart() {
|
||||||
stop
|
stop
|
||||||
start
|
start
|
||||||
|
Loading…
x
Reference in New Issue
Block a user