summaryrefslogtreecommitdiff
blob: 6a99cf76953736666b7fa2563ab736a45babacc2 (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
25
26
#!/sbin/openrc-run
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

BIN_MANAGER=/usr/bin/prelude-manager
PID_MANAGER=/run/prelude-manager/prelude-manager.pid

depend() {
  need net
}

start() {
  ebegin "Starting prelude-manager"
  checkpath -d -m 0755 -o root:root /run/prelude-manager
  start-stop-daemon --start --exec $BIN_MANAGER \
    --pidfile $PID_MANAGER -- -d -P $PID_MANAGER
  eend $?
}

stop() {
  ebegin "Stopping prelude-manager"
  start-stop-daemon --stop --exec $BIN_MANAGER \
    --pidfile $PID_MANAGER
  eend $?
}