2
votes
1answer
76 views

Launch a command at the end of Linux startup

I have a Raspberry without screen/keyboard/mouse that does nothing else than launching a radio stream at startup : mplayer http://95.81.146.2/fip/all/fiphautdebit.mp3 I have put this command at the ...
1
vote
1answer
148 views

Startscript: using $! to create pidfile - returning wrong pid (off by one) occasionally

We have 3 instances of redis running on a test server. For some reason, our start script which starts redis can write the wrong pid to a file. Here is what it's doing: su redis -c "redis-server ...
3
votes
1answer
748 views

Modify /etc/xdg/lxsession/LXDE/autostart before boot

I have some parameters that I would like to change in /etc/xdg/lxsession/LXDE/autostart, before it is run. I get the parameters from a grep command. I would like to feed them to the autostart file but ...
2
votes
2answers
205 views

Running script once when X is initialized

Where should I put a bash script if I want it to be executed once during X startup as part of system bootup. For example, I want to start up VPN on my machine as root user once X starts up. When X ...