The server is an AWS AMI, specifically this one
I'm trying to use upstart to start a process on boot
On this particular box, the
root login is disabled, and every time I need to run something with
sudo it asks for my password
So simply putting my command in the script won't work.
I tried to follow this answer, with no success
I've got this rio.conf file in the /ect/init directory:
start on runlevel  stop on runlevel [!2345] exec echo Password! | sudo -s /usr/bin/riofs --fuse-options="allow_other" --fmode=0777 --dmode=0777 xx.xxxxxx /mnt/applications/recorder/streams/_definst_/s3
And whenever I run this, nothing seems to happen.
Password! is just an example password.
If I type
exec /usr/bin/riofs my SSH window will close, and then when I go back in, I can see that it's working. I don't know what that means, or how to automate that.