Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: moenster on April 17, 2005, 04:05:03 PM

Title: Start program automatically at system startup
Post by: moenster on April 17, 2005, 04:05:03 PM
Hi

How do I make e.g. teamspeak start automatically at system startup? It should start as a normal user, and not as root.

Regards Henrik
Title: Start program automatically at system startup
Post by: moenster on April 17, 2005, 04:06:29 PM
Forgot to say, that it is on SME 6.01-01.

/Henrik
Title: Start program automatically at system startup
Post by: hmuhammad on April 18, 2005, 08:10:52 PM
assuming when logged on as user1 it is started at the command line with...

teamspeak arg1 arg2

then try adding the following to /etc/rc.d/rc.local

# start teamspeak
su -l -s /bin/bash -c "teamspeak arg1 arg2" user1