- description "Ethercalc"
- start on runlevel [2345]
- stop on runlevel [!2345]
- respawn
- respawn limit 10 5
- umask 022
- expect daemon
- console none
- exec su -c 'screen -dmS ethercalc /home/ethercalc/npm/node_modules/ethercalc/bin/ethercalc' ethercalc
- root@bach:~# service ethercalc status
- ethercalc start/killed, process 19254
- root@bach:~# service ethercalc stop
- ^C
- root@bach:~# service ethercalc status
- ethercalc stop/killed, process 19254
- root@bach:~# service ethercalc start
- ^C
- root@bach:~# ps faux | grep 19254
- root 20124 0.0 0.0 11748 916 pts/4 S+ 11:10 0:00 | \_ grep --color=auto 19254
- root@bach:~#