weimarnetz / registrator-nodejs

registrator to register a weimarnetz knotennummer
http://reg.weimarnetz.de
0 stars 2 forks source link

init script throws error #9

Closed andibraeu closed 10 years ago

andibraeu commented 10 years ago

new misc/registrator script throws following error:

dirname: zusätzlicher Operand „-o“ „dirname --help“ gibt weitere Informationen. Starting node.js weimarnetz registrator: registrator ---> started node.js weimarnetz registrator: registratorstart-stop-daemon: unable to chdir() to --make-pidfile (No such file or directory) .

eins78 commented 10 years ago

Just revert my small change and wait till Debian is finished throwing out their fucking ridiculous init "system".

L337hium commented 10 years ago

WORKDIR=dirname $( echo $DAEMON_ARGS | awk '{print $1}' )

eins78 commented 10 years ago

@L337hium I don't understand what you're trying to say. But I also don't understand how adding an argument to DAEMON_ARGS would brake anything.

Feel free to add a fix, I won't since I am using systemd.

andibraeu commented 10 years ago

I'll use the old version of init script, the only disadvantage is there's no PID file saved, so stopping the service doesn't work. you have to kill the process manually