3 # Startup script for ser2net
7 printf "Starting ser2net: "
8 if [ ! -f /etc
/ser2net.conf
] ; then
9 echo "no configuration file"
13 start-stop-daemon
-S -q --exec /usr
/sbin
/ser2net
-- -P /var
/run
/ser2net.pid
14 [ $?
= 0 ] && echo "OK" ||
echo "FAIL"
18 printf "Shutting down ser2net: "
19 start-stop-daemon
-K -q -p /var
/run
/ser2net.pid
20 [ $?
= 0 ] && echo "OK" ||
echo "FAIL"
39 echo "Usage: ser2net {start|stop|restart}"