3 # Provides: fusionforge-light
4 # Required-Start: $local_fs $remote_fs $network $syslog $named postgresql
5 # Required-Stop: $local_fs $remote_fs $network $syslog $named postgresql
6 # Default-Start: 2 3 4 5
9 # Short-Description: Start/stop FusionForge's system tasks daemon
11 # Copyright (C) 2014 Inria (Sylvain Beucler)
13 PIDFILE=/var/run/fusionforge-light
14 DAEMON=$(forge_get_config binary_path)/light
16 function check_running() {
17 if kill -0 $(cat $PIDFILE) 2>/dev/null; then
26 if check_running; then
27 echo "Already running"
31 if !check_running; then
43 if check_running; then