Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Starting /usr/sbin/ program on boot
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
orangecakez
Tux's lil' helper
Tux's lil' helper


Joined: 14 Feb 2007
Posts: 116

PostPosted: Tue Dec 18, 2007 1:29 am    Post subject: Starting /usr/sbin/ program on boot Reply with quote

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
View user's profile Send private message
Wormo
Retired Dev
Retired Dev


Joined: 29 Nov 2004
Posts: 526
Location: SB County California

PostPosted: Tue Dec 18, 2007 1:35 am    Post subject: Reply with quote

Write a little init script for it, and add the init script to default runlevel

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=4#doc_chap4
Back to top
View user's profile Send private message
orangecakez
Tux's lil' helper
Tux's lil' helper


Joined: 14 Feb 2007
Posts: 116

PostPosted: Tue Dec 18, 2007 1:47 am    Post subject: Reply with quote

I'm not very experienced with scripting, but is this correct? :

Code:
#!/sbin/runscript

start() {
  --exec /usr/sbin/bitlbee
}
Back to top
View user's profile Send private message
tarpman
Veteran
Veteran


Joined: 04 Nov 2004
Posts: 1083
Location: Victoria, BC, Canada

PostPosted: Tue Dec 18, 2007 4:36 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum