summaryrefslogtreecommitdiff
path: root/pcr/gmid/gmid.initd
blob: 42f7eb947b8afeb15d25f7c5a7472023f3badd5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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 $?
}