[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: autostart for users



On Thu, Nov 21, 2013 at 12:15:57PM +0100, Florian Lindner wrote:
> Hello,
> 
> I want to give users the possbility to autostart programms on boot.
> My first idea would be to put a line like that in /etc/rc.local
> 
[cut]
> 
> So that a blocking script does not block the rc.local file. Should I
> also add a nohup? Or another way?

You could teach your users to add programs to their crontab.

 $ crontab -e

will open an editor (specified by the $EDITOR variable) with the user's
crontab. Adding a line such as "@reboot /home/flindner/mydaemon.sh" will
cause mydaemon.sh to be run as the user upon reboot.

Attachment: signature.asc
Description: Digital signature


Reply to: