Re: autostart for users
On Sat, 2013-11-23 at 21:04 +0200, Andrei POPESCU wrote: > On Jo, 21 nov 13, 12:15:57, 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 > > Not on boot, but on login (into an XDG compliant WM/DE): > > $HOME/.config/autostart/ > > Most DEs have GUIs to add things there. That's correct, but something completely different ;). A startup of the system isn't equal to the start of a desktop session ;). -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/1385235254.1787.1.camel@archlinux
Re: autostart for users
On Jo, 21 nov 13, 12:15:57, 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 Not on boot, but on login (into an XDG compliant WM/DE): $HOME/.config/autostart/ Most DEs have GUIs to add things there. Kind regards, Andrei -- http://wiki.debian.org/FAQsFromDebianUser Offtopic discussions among Debian users and developers: http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic http://nuvreauspam.ro/gpg-transition.txt signature.asc Description: Digital signature
Re: autostart for users
On Thu 21 Nov 2013 at 11:36:40 +, Darac Marjal wrote: > 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. That solution saved me some time today as part of a project I've undertaken. It works very nicely. Thank you. crontab(5) is, of course, the source for this special string. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/2111201312.c0db50ab4...@desktop.copernicus.demon.co.uk
Re: autostart for users
Am 21.11.2013 12:36, schrieb Darac Marjal: 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. Cool, didn't know about that! Regards, Florian -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/60894b355828b558e0244a0a96fb2...@xgm.de
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. signature.asc Description: Digital signature
autostart for users
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 [ -x /home/flindner/autostart ] && su flindner -c "/home/flindner/autostart" Probably something like that would be better: [ -x /home/cburchard/autostart ] && su cburchard -c "/home/cburchard/autostart &" So that a blocking script does not block the rc.local file. Should I also add a nohup? Or another way? Thanks, Florian -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/5debea875e2a23fd7e3b0ec984dc3...@xgm.de