summaryrefslogtreecommitdiff
path: root/pcr/gmid/gmid.initd
blob: e0b8afded270abbde74faf6586b409e662992e94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/openrc-run

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 $?
}