2011-07-17, 15:42
hi there
this looks fantastic, and is something i've been looking for for years!!
i am have had some trouble starting as daemon... i installed using the ubuntu script and left all defaults except asked it to start as a daemon. it doesn't actually start:
but if i start from the CLI it runs fine will try adding as a daemon the manual way... let you know how i get on
EDIT: added as a daemon as per here and still not working for me where am i going wrong
here is the log... but it only contains data from when i started from CLI
any ideas where i'm going wrong? extra info i can give?
thanx!
this looks fantastic, and is something i've been looking for for years!!
i am have had some trouble starting as daemon... i installed using the ubuntu script and left all defaults except asked it to start as a daemon. it doesn't actually start:
Code:
server@server:~$ sudo /etc/init.d/headphones stop
Stopping headphones
start-stop-daemon: warning: failed to kill 24147: No such process
1 pids were not killed
No process in pidfile '/var/run/headphones.pid' found running; none killed.
server@server:~$ sudo /etc/init.d/headphones start
Starting headphones
server@server:~$ cat /var/run/headphones.pid
24409
but if i start from the CLI it runs fine will try adding as a daemon the manual way... let you know how i get on
EDIT: added as a daemon as per here and still not working for me where am i going wrong
Code:
server@server:~/.headphones$ sudo cp headphonesinit.d /etc/init.d/headphones
server@server:~/.headphones$ sudo chmod +x /etc/init.d/headphones
server@server:~/.headphones$ sudo update-rc.d /etc/init.d/headphones defaults
update-rc.d: /etc/init.d//etc/init.d/headphones: file does not exist
server@server:~/.headphones$ sudo update-rc.d /etc/init.d/headphones defaults
update-rc.d: /etc/init.d//etc/init.d/headphones: file does not exist
server@server:~/.headphones$ sudo update-rc.d headphones defaults
System start/stop links for /etc/init.d/headphones already exist.
server@server:~$ sudo /etc/init.d/headphones start
Starting headphones
server@server:~$ sudo /etc/init.d/headphones stop
Stopping headphones
start-stop-daemon: warning: failed to kill 24679: No such process
1 pids were not killed
No process in pidfile '/var/run/headphones.pid' found running; none killed.
here is the log... but it only contains data from when i started from CLI
Code:
17-Jul-2011 14:38:50 - INFO :: MainThread : Checking to see if the database has all tables....
17-Jul-2011 14:38:51 - DEBUG :: MainThread : Trying to execute: "git rev-parse HEAD" with shell in /home/server/.headphones
17-Jul-2011 14:38:51 - DEBUG :: MainThread : Git output: 9011d3e4493afba88ada7e78412d28ece52a8152
17-Jul-2011 14:38:51 - INFO :: MainThread : Headphones is already up-to-date.
17-Jul-2011 14:38:51 - INFO :: MainThread : Starting Headphones on port: 8181
any ideas where i'm going wrong? extra info i can give?
thanx!