View previous topic :: View next topic |
Author |
Message |
orangecakez Tux's lil' helper
Joined: 14 Feb 2007 Posts: 116
|
Posted: Tue Dec 18, 2007 1:29 am Post subject: Starting /usr/sbin/ program on boot |
|
|
I have bitlbee in /usr/sbin and I want it to start whenever I start up Gentoo, like with /etc/init.d/ scripts. How can I make it execute "bitlbee" with all the other stuff that starts up? |
|
Back to top |
|
|
Wormo Retired Dev
Joined: 29 Nov 2004 Posts: 526 Location: SB County California
|
|
Back to top |
|
|
orangecakez Tux's lil' helper
Joined: 14 Feb 2007 Posts: 116
|
Posted: Tue Dec 18, 2007 1:47 am Post subject: |
|
|
I'm not very experienced with scripting, but is this correct? :
Code: | #!/sbin/runscript
start() {
--exec /usr/sbin/bitlbee
}
|
|
|
Back to top |
|
|
tarpman Veteran
Joined: 04 Nov 2004 Posts: 1083 Location: Victoria, BC, Canada
|
Posted: Tue Dec 18, 2007 4:36 am Post subject: |
|
|
Bitlbee in Gentoo comes with an init script which is installed as /etc/init.d/bitlbeed. You should be able to configure it to start at boot same as any other service.
And no, that script would not work, as you could have found out by trying it. _________________ Saving the world, one kilobyte at a time. |
|
Back to top |
|
|
|