Linux – upstart script not logging to file

linuxupstart

Linux CentOS 6.5

Here's my upstart script inside of /etc/init/

start on runlevel [2345]
stop on runlevel [!2345]

exec /usr/bin/riofs --fuse-options="allow_other" --fmode=0777 --dmode=0777 ct.recordergo /mnt/applications/recorder/streams/_definst_/s3

I want to run this program once on startup.

I get no logs inside of /var/log/upstart.

I'm not sure if the script is working or not. How can get it to log a success or failure?

Best Answer

You can enable debugging to the system log with the initctl log-priority <priority> command.

To change the priority with which Upstart logs messages to the system log, you can change the log priority at any time using log-priority command as follows:

initctl log-priority <priority>

Where <priority> may be one of:

debug, info, message, warn, error, fatal

See http://upstart.ubuntu.com/cookbook/#debugging for more information