summaryrefslogtreecommitdiffstats
path: root/gentoo/files/bcfg2-server.rc
blob: 7aeda1dc77b9c0aa7bb6ee92e4343afb4e3983a0 (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
#!/sbin/runscript
#
# bcfg2-server - bcfg configuration daemon
# 

depend () {
        need net
}

start () {
        ebegin "Starting bcfg2-server"
        start-stop-daemon --start --quiet \
            --pidfile /var/run/bcfg2-server/bcfg2-server.pid \
            --startas /usr/sbin/bcfg2-server -- -D /var/run/bcfg2-server.pid
        eend $? "Failed to start bcfg2-server"
}

stop () {
        ebegin "Stopping bcfg2-server"
        start-stop-daemon --stop --quiet \
            --pidfile /var/run/bcfg2-server/bcfg2-server.pid \
            --signal INT
        eend $? "Failed to stop bcfg2-server"
}