From 2837ab938908bcf6090fed0d6b1d8345bbd7480b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20K=C3=B6gl?= Date: Thu, 24 Apr 2014 09:32:16 +0200 Subject: [PATCH] more init scripts --- config_files/dump_grabber | 21 +++++++++++++++++++++ config_files/ekgplotter | 21 +++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100755 config_files/dump_grabber create mode 100755 config_files/ekgplotter diff --git a/config_files/dump_grabber b/config_files/dump_grabber new file mode 100755 index 0000000..287caeb --- /dev/null +++ b/config_files/dump_grabber @@ -0,0 +1,21 @@ +#!/sbin/runscript + +depend() { + need net + use dns localmount chaosc + after bootmisc + provide dump_grabber +} + + +start() { + ebegin "starting dump_grabber" + start-stop-daemon --start --pidfile /var/run/dump_grabber.pid --make-pidfile --user stefan --group stefan --background --exec env DISPLAY=:0 /usr/bin/dump_grabber + eend $? +} + +stop() { + ebegin "stopping dump_grabber" + start-stop-daemon --stop --quiet --pidfile /var/run/dump_grabber.pid + eend $? +} diff --git a/config_files/ekgplotter b/config_files/ekgplotter new file mode 100755 index 0000000..f53f3dd --- /dev/null +++ b/config_files/ekgplotter @@ -0,0 +1,21 @@ +#!/sbin/runscript + +depend() { + need net + use dns localmount chaosc + after bootmisc + provide ekgplotter +} + + +start() { + ebegin "starting ekgplotter" + start-stop-daemon --start --pidfile /var/run/ekgplotter.pid --make-pidfile --user stefan --group stefan --background --exec env DISPLAY=:0 /usr/bin/ekgplotter + eend $? +} + +stop() { + ebegin "stopping ekgplotter" + start-stop-daemon --stop --quiet --pidfile /var/run/ekgplotter.pid + eend $? +}