4 # Required-Start: $remote_fs
5 # Required-Stop: $remote_fs
6 # Default-Start: 2 3 4 5
8 # Short-Description: ampy
9 # Description: Listen to ampmeter on microphone and fill in an rrd file
12 PATH=/bin:/usr/bin:/sbin:/usr/sbin
13 PIDFILE=/var/run/ampy.pid
17 ARGS=/home/nirgal/ampy/run.py
22 . /lib/lsb/init-functions
25 log_daemon_msg "Starting ampmeter recording" "ampy"
26 if start-stop-daemon --start --quiet --background --exec $PROG --user $USER --pidfile $PIDFILE --chuid $USER:$GROUP --umask 002 --make-pidfile --nicelevel $NICE -- $ARGS
35 log_daemon_msg "Stopping ampmeter recording" "ampy"
36 if start-stop-daemon --stop --quiet --exec $PROG --user $USER --pidfile $PIDFILE -- $ARGS
56 log_success_msg "Usage: ampy {start|stop|restart|force-reload}"