2014-04-24 07:32:16 +00:00
|
|
|
#!/sbin/runscript
|
|
|
|
|
|
|
|
depend() {
|
|
|
|
need net
|
2014-04-28 05:20:28 +00:00
|
|
|
use dns localmount
|
2014-04-24 07:32:16 +00:00
|
|
|
after bootmisc
|
|
|
|
provide ekgplotter
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
start() {
|
|
|
|
ebegin "starting ekgplotter"
|
2014-04-28 05:20:28 +00:00
|
|
|
start-stop-daemon --start --pidfile /var/run/ekgplotter.pid --make-pidfile --user sarah --group sarah --background --exec env DISPLAY=:0 /usr/bin/ekgplotter
|
2014-04-24 07:32:16 +00:00
|
|
|
eend $?
|
|
|
|
}
|
|
|
|
|
|
|
|
stop() {
|
|
|
|
ebegin "stopping ekgplotter"
|
|
|
|
start-stop-daemon --stop --quiet --pidfile /var/run/ekgplotter.pid
|
|
|
|
eend $?
|
|
|
|
}
|