Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
eselect-init-0.1.ebuild
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
rmh3093
Advocate
Advocate


Joined: 06 Aug 2003
Posts: 2138
Location: Albany, NY

PostPosted: Tue Jan 02, 2007 11:14 pm    Post subject: eselect-init-0.1.ebuild Reply with quote

For those testing different init systems I though this might come in handy. Yes, I know you can switch init programs with the cmdline option "init=" but I this tool actually will change the default init program. I will have to get the sysvinit ebuild maintainer to support this... but so far it works with einit,initng, and jinit out of the box.

NOTE: The first time you use this type 'cp /sbin/init /sbin/sysvinit'
Code:
layman -a einit
emerge eselect-init




Code:
# eselect init list
Available init symlink targets:
  [1]   einit *
  [2]   jinit
  [3]   initng
  [4]   sysvinit
Code:
# eselect init show
Current init symlink:
  /sbin/einit

_________________
Do not meddle in the affairs of wizards, for they are subtle and quick to anger.
Back to top
View user's profile Send private message
nesl247
Veteran
Veteran


Joined: 15 Jun 2004
Posts: 1614
Location: Florida

PostPosted: Wed Jan 03, 2007 2:48 am    Post subject: Reply with quote

Haven't tested it yet, but excellent job. I hope gentoo does adapt this.
Back to top
View user's profile Send private message
zxy
Veteran
Veteran


Joined: 06 Jan 2006
Posts: 1160
Location: in bed in front of the computer

PostPosted: Wed Jan 03, 2007 2:59 am    Post subject: Reply with quote

Great idea!
_________________
Nature does not hurry, yet everything is accomplished.
Lao Tzu
Back to top
View user's profile Send private message
cruzki
Tux's lil' helper
Tux's lil' helper


Joined: 13 Dec 2005
Posts: 137

PostPosted: Wed Jan 03, 2007 12:16 pm    Post subject: Reply with quote

nesl247 wrote:
Haven't tested it yet, but excellent job. I hope gentoo does adapt this.


it's possible to test the new init system and paludis in the next emmision?¿?¿?
Back to top
View user's profile Send private message
nesl247
Veteran
Veteran


Joined: 15 Jun 2004
Posts: 1614
Location: Florida

PostPosted: Wed Jan 03, 2007 7:49 pm    Post subject: Reply with quote

cruzki wrote:
nesl247 wrote:
Haven't tested it yet, but excellent job. I hope gentoo does adapt this.


it's possible to test the new init system and paludis in the next emmision?¿?¿?


Please do not ask about emission stuff here. I'd prefer to talk on irc #evo-mission @ irc.freenode.net (It's up for discussion to come talk to me)
Back to top
View user's profile Send private message
mdeininger
Veteran
Veteran


Joined: 15 Jun 2005
Posts: 1740
Location: Emerald Isles, observing Dublin's docklands

PostPosted: Wed Jan 03, 2007 8:06 pm    Post subject: Reply with quote

well done, ryan :)

i took the liberty of fixing the digest in the svn, as it reported a digest error when i tried to emerge it, it should work now ;)
_________________
"Confident, lazy, cocky, dead." -- Felix Jongleur, Otherland

( Twitter | Blog | GitHub )
Back to top
View user's profile Send private message
cruzki
Tux's lil' helper
Tux's lil' helper


Joined: 13 Dec 2005
Posts: 137

PostPosted: Wed Jan 03, 2007 8:06 pm    Post subject: Reply with quote

nesl247 wrote:
cruzki wrote:
nesl247 wrote:
Haven't tested it yet, but excellent job. I hope gentoo does adapt this.


it's possible to test the new init system and paludis in the next emmision?¿?¿?


Please do not ask about emission stuff here. I'd prefer to talk on irc #evo-mission @ irc.freenode.net (It's up for discussion to come talk to me)


OK ;)
Back to top
View user's profile Send private message
slycordinator
Advocate
Advocate


Joined: 31 Jan 2004
Posts: 3065
Location: Korea

PostPosted: Thu Jan 04, 2007 5:29 am    Post subject: Reply with quote

I'm assuming this would work with runit by simply adding runit to the list of init_progs.

Haven't tested, though
Back to top
View user's profile Send private message
rmh3093
Advocate
Advocate


Joined: 06 Aug 2003
Posts: 2138
Location: Albany, NY

PostPosted: Thu Jan 04, 2007 2:30 pm    Post subject: Reply with quote

slycordinator wrote:
I'm assuming this would work with runit by simply adding runit to the list of init_progs.

Haven't tested, though


yeah i can add it though... having the list of init_progs was the best solution i could come up with at the moment (with out needing the maintainers of the ebuilds to agree on a new location for init bins), or I could scan /sbin/ for *init but then i would need a black list and that wouldnt work for ruint or initng

..if you can think of something better let me know

EDIT: I added runit to the init_progs list and bumped the version to reflect a change; eselect-init-0.1-r1.ebuild should work with runit now.
_________________
Do not meddle in the affairs of wizards, for they are subtle and quick to anger.
Back to top
View user's profile Send private message
slycordinator
Advocate
Advocate


Joined: 31 Jan 2004
Posts: 3065
Location: Korea

PostPosted: Sun Jan 14, 2007 7:48 pm    Post subject: Reply with quote

eslect-init screws up building sysvinit. I was rebuilding my whole system profile and it failed when it got to sysvinit because of /sbin/init being a symlink.
Back to top
View user's profile Send private message
rmh3093
Advocate
Advocate


Joined: 06 Aug 2003
Posts: 2138
Location: Albany, NY

PostPosted: Sun Jan 14, 2007 8:21 pm    Post subject: Reply with quote

slycordinator wrote:
eslect-init screws up building sysvinit. I was rebuilding my whole system profile and it failed when it got to sysvinit because of /sbin/init being a symlink.


i guess i could change it to copy the file instead of symlinking it... or would a hard link work?
_________________
Do not meddle in the affairs of wizards, for they are subtle and quick to anger.
Back to top
View user's profile Send private message
mdeininger
Veteran
Veteran


Joined: 15 Jun 2005
Posts: 1740
Location: Emerald Isles, observing Dublin's docklands

PostPosted: Sun Jan 14, 2007 8:34 pm    Post subject: Reply with quote

rmh3093 wrote:
slycordinator wrote:
eslect-init screws up building sysvinit. I was rebuilding my whole system profile and it failed when it got to sysvinit because of /sbin/init being a symlink.


i guess i could change it to copy the file instead of symlinking it... or would a hard link work?
i suppose a hard link will be seen as an equivalent of a copy, so that should work.
but then finding out which init is currently selected would get tricky if you used readlink(1) before...
_________________
"Confident, lazy, cocky, dead." -- Felix Jongleur, Otherland

( Twitter | Blog | GitHub )
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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