aboutsummaryrefslogtreecommitdiff
blob: 701af5223523d774aec62e8152ac27f0eb4a48b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/sbin/runscript

USER=root
GENTOASTER=/usr/share/gentoaster/daemon.php
GENTOASTER_PID=/usr/share/gentoaster/gentoaster.pid
GENTOASTER_LOG=/var/log/gentoaster.log

start() {
      ebegin "Starting Gentoaster"
      start-stop-daemon --start --background --make-pidfile --pidfile ${GENTOASTER_PID} --user "${USER}" --stdout ${GENTOASTER_LOG} --exec /usr/bin/php -- -f $GENTOASTER
      eend $?
}

stop() {
      ebegin "Stopping Gentoaster"
      start-stop-daemon --stop --exec /usr/bin/php --pidfile ${GENTOASTER_PID}
      eend $?
}