This topic is now archived and is closed to further replies.


Can anyone help me debug my upstart script

Recommended Posts



I'm having issues with my upstart job and I'm not sure why.


If I run the following command from the terminal all works fine:


sudo /opt/utorrent-server/utserver -settingspath /opt/utorrent-server -logfile /opt/utorrent-server/utserver.log



However my upstart script doesnt seem to work, the process is not running after I run this and no logfile has been created


I've no idea what's wrong

loz@gravity:~$ cat /etc/init/utorrent.confdescription "utorrent startup script"description "utserver for linux"start on (local-filesystems and started dbus and stopped udevtrigger)stop on runlevel [016]# tell upstart to respawn the process if abnormal exitrespawnscriptcd /opt/utorrentexec su -c "/opt/utorrent-server/utserver -settingspath /opt/utorrent-server -logfile /opt/utorrent-server/utserver.log" rootend scriptloz@gravity:~$ ls -ltrh /etc/init.d/utorrentlrwxrwxrwx 1 root root 21 Apr 29 19:25 /etc/init.d/utorrent -> /lib/init/upstart-jobloz@gravity:~$ ls /opt/utorrent-server/utserver.logls: cannot access /opt/utorrent-server/utserver.log: No such file or directoryloz@gravity:~$ sudo start utorent[sudo] password for loz:start: Unknown job: utorentloz@gravity:~$ sudo start utorrentutorrent start/running, process 9064loz@gravity:~$ ls /opt/utorrent-server/utserver.logls: cannot access /opt/utorrent-server/utserver.log: No such file or directoryloz@gravity:~$ ps -ef | grep 9064loz       9084  8863  0 20:08 pts/2    00:00:00 grep --color=auto 9064
loz@gravity:~$ sudo initctl list | grep utor
utorrent stop/waiting
loz@gravity:~$ init-checkconf /etc/init/utorrent.conf
File /etc/init/utorrent.conf: syntax ok

Share this post

Link to post
Share on other sites