diff options
Diffstat (limited to 'pcr/gmid/gmid.initd')
-rw-r--r-- | pcr/gmid/gmid.initd | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/pcr/gmid/gmid.initd b/pcr/gmid/gmid.initd new file mode 100644 index 000000000..42f7eb947 --- /dev/null +++ b/pcr/gmid/gmid.initd @@ -0,0 +1,24 @@ +#!/usr/bin/openrc-run + +name="gmid" +description="gmid Gemini daemon" + + +depend() { + need net + after logger +} + +start() { + ebegin "Starting gmid" + start-stop-daemon --start --background --user ${GMID_USER} --name gmid \ + --make-pidfile --pidfile /run/gmid.pid \ + --exec /usr/bin/gmid -- -f -c /etc/gmid.conf + eend $? +} + +stop() { + ebegin "Stopping gmid" + start-stop-daemon --stop --pidfile /run/gmid.pid --user ${GMID_USER} + eend $? +} |