mirror of
https://github.com/agdsn/ancient-weatherstation.git
synced 2026-06-19 14:58:00 +00:00
init-script for weatherdeamon added
git-svn-id: file:///home/jan/tmp/wetterstation/trunk@122 dd492736-c11a-0410-ad51-8c26713eaf7f
This commit is contained in:
Executable
+22
@@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
|
||||
binary='/home/jan/testwetter/sammeln/weatherdeamon';
|
||||
|
||||
return=$rc_done
|
||||
case "$1" in
|
||||
start)
|
||||
/sbin/start-stop-daemon --start -v --exec $binary
|
||||
;;
|
||||
stop)
|
||||
/sbin/start-stop-daemon --stop -v --exec $binary
|
||||
;;
|
||||
restart)
|
||||
$0 stop && $0 start || return=$rc_failed
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart}"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
test "$return" = "$rc_done" || exit 1
|
||||
exit 0
|
||||
Reference in New Issue
Block a user