aboutsummaryrefslogtreecommitdiff
blob: c625b558d979d3ee74f7b01b753e4452691e99a2 (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 --$
      eend $?
}

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