I am using Arch Linux.
I need to start my web application automatically should the server should restart. I need to run it as user 'www'.
How can I do this?
|
I am using Arch Linux. I need to start my web application automatically should the server should restart. I need to run it as user 'www'. How can I do this? |
||||
|
You need to write an init script for your web application. (Examples for Dropbox and RTorrent. You can find more examples if you search the wiki for Your script would use The critical line would look something like
Then you would add your new daemon to the DAEMONS list in |
||||
|
|
|
Use
|
|||
|
|
wwwyou could use:sudo -u www some_command. – htor Mar 17 '12 at 16:47