#!/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 $? }