1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#!/sbin/runscript start(){ ebegin "Starting volfixd" start-stop-daemon --start --quiet --exec /usr/bin/volfixd --nicelevel 12 --background --make-pidfile --pidfile /var/run/volfixd.pid eend $? } stop(){ ebegin "Stopping volfixd" start-stop-daemon --stop --quiet --pidfile=/var/run/volfixd.pid eend $? } restart(){ svc_stop svc_start }