Eduardo Asked: 2010-03-26 13:56:49 +0800 CST2010-03-26 13:56:49 +0800 CST 2010-03-26 13:56:49 +0800 CST How may I run a user process at system startup that the user can set himself? 772 I would like the users of the system to be able to setup processes that run at system startup that they can setup by themselves. How may I do it? linux service users 3 Answers Voted Best Answer elijahbuck 2010-03-26T18:20:57+08:002010-03-26T18:20:57+08:00 A user can specify a script to run on boot via cron. In their crontab (edited by executing 'crontab -e' when logged in), they would specify: @reboot /home/username/path/to/script.sh user126330 2010-03-26T14:34:01+08:002010-03-26T14:34:01+08:00 Ask them to add it to rc.local ? sybreon 2010-03-26T16:30:41+08:002010-03-26T16:30:41+08:00 Write your own rc.local script to check every user $HOME/rc.local. Then, use su to execute that command under the user account.
A user can specify a script to run on boot via cron. In their crontab (edited by executing 'crontab -e' when logged in), they would specify:
Ask them to add it to rc.local ?
Write your own
rc.local
script to check every user$HOME/rc.local
. Then, usesu
to execute that command under the user account.