Author Topic: Can I use rc.local in /etc to startup progs  (Read 2651 times)

itsmeok

  • Veteran
  • ***
  • Posts: 100
    • View Profile
Can I use rc.local in /etc to startup progs
« on: February 04, 2009, 06:10:37 pm »
I am using Hellanzb on my core. I want it to start at boot. I found a way to do this in linux. Will this work on LinuxMCE aswell or is there are better way of doing this on LMCE ?

 Just add this line inside /etc/rc.local and change $HELLAUSER to whatever your username is.

 su -c '/usr/bin/screen -S hellanzb -d -m /usr/bin/python /usr/bin/hellanzb.py > /dev/null 2> /dev/null' $HELLAUSER

Can i use user linuxmce here or do they want another user ?
« Last Edit: February 10, 2009, 11:29:25 am by itsmeok »

itsmeok

  • Veteran
  • ***
  • Posts: 100
    • View Profile
Re: How to auto start programs on LMCE
« Reply #1 on: February 10, 2009, 11:28:54 am »
Just to renew the post I altered the subject.

I managed to get the right instruction as rc.local works when run from a console. Can I use rc.local in /etc ?

If the answer is yes how do I get it to run on my system.
If the answer is no could I add the line somewhere else so it will be run.