summaryrefslogtreecommitdiff
blob: 4db7200ad4f32a46b0a91a7e28e2c04abd7543bf (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/runscript
# 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 $?
}