lozbrown Posted April 30, 2014 Report Share Posted April 30, 2014 Hi 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 wrongloz@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 9064loz@gravity:~$ sudo initctl list | grep utorutorrent stop/waitingloz@gravity:~$ init-checkconf /etc/init/utorrent.confFile /etc/init/utorrent.conf: syntax ok Link to comment Share on other sites More sharing options...
Firon Posted April 30, 2014 Report Share Posted April 30, 2014 http://upstart.ubuntu.com/cookbook/#setuid Link to comment Share on other sites More sharing options...
lozbrown Posted May 20, 2014 Author Report Share Posted May 20, 2014 I'm still stuck with what's wrong Adding setuid rootto the config makes no difference Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.