summaryrefslogtreecommitdiff
path: root/package/rpi-userland
diff options
context:
space:
mode:
authorPeter Korsgaard <peter@korsgaard.com>2014-12-12 08:41:53 +0100
committerPeter Korsgaard <peter@korsgaard.com>2014-12-12 08:44:26 +0100
commitc9345dee4fb6620516529c4e562477df795eb748 (patch)
tree6f3e67b87700db235e79ac393ab5eed17c0b7c58 /package/rpi-userland
parentf1d3e09895b245da9d54bbaef36e5de95269034e (diff)
rpi-userland: use start() / stop() in init script like elsewhere
Other init scripts in Buildroot use start()/stop() instead of do_start()/do_stop(), so change it here as well for consistency. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/rpi-userland')
-rwxr-xr-xpackage/rpi-userland/S94vcfiled12
1 files changed, 6 insertions, 6 deletions
diff --git a/package/rpi-userland/S94vcfiled b/package/rpi-userland/S94vcfiled
index 9a3e523d3..a70e0ae67 100755
--- a/package/rpi-userland/S94vcfiled
+++ b/package/rpi-userland/S94vcfiled
@@ -10,14 +10,14 @@ PIDFILE="/var/run/$NAME.pid"
# Read configuration variable file if it is present
[ -r "$CFGFILE" ] && . "$CFGFILE"
-do_start()
+start()
{
echo -n "Starting $DESC: "
start-stop-daemon -S -q -p "$PIDFILE" -x "$DAEMON" -- $DAEMON_ARGS &&
echo "done" || echo "failed"
}
-do_stop()
+stop()
{
echo -n "Stopping $DESC: "
if start-stop-daemon -K -q -R TERM/30/KILL/5 -p "$PIDFILE" -n "$NAME"; then
@@ -31,14 +31,14 @@ do_stop()
case "$1" in
start)
- do_start
+ start
;;
stop)
- do_stop
+ stop
;;
restart|reload)
- do_stop
- do_start
+ stop
+ start
;;
*)
echo "Usage: $0 {start|stop|restart|reload}" >&2