| # based on skeleton from Debian GNU/Linux |
| PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin |
| DAEMON=/usr/local/bin/port_publisher.py |
| DESC="serial port avahi device publisher" |
| test -f $DAEMON || exit 0 |
| echo -n "Starting $DESC: " |
| $DAEMON --daemon --pidfile /var/run/$NAME.pid |
| echo -n "Stopping $DESC: " |
| start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid |
| echo -n "Restarting $DESC: " |
| start-stop-daemon --stop --quiet --pidfile \ |
| $DAEMON --daemon --pidfile /var/run/$NAME.pid |
| echo "Usage: $N {start|stop|restart|force-reload}" >&2 |