View previous topic :: View next topic |
Author |
Message |
rmh3093 Advocate
Joined: 06 Aug 2003 Posts: 2138 Location: Albany, NY
|
Posted: Tue Jan 02, 2007 11:14 pm Post subject: eselect-init-0.1.ebuild |
|
|
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 |
|
|
nesl247 Veteran
Joined: 15 Jun 2004 Posts: 1614 Location: Florida
|
Posted: Wed Jan 03, 2007 2:48 am Post subject: |
|
|
Haven't tested it yet, but excellent job. I hope gentoo does adapt this. |
|
Back to top |
|
|
zxy Veteran
Joined: 06 Jan 2006 Posts: 1160 Location: in bed in front of the computer
|
Posted: Wed Jan 03, 2007 2:59 am Post subject: |
|
|
Great idea! _________________ Nature does not hurry, yet everything is accomplished.
Lao Tzu |
|
Back to top |
|
|
cruzki Tux's lil' helper
Joined: 13 Dec 2005 Posts: 137
|
Posted: Wed Jan 03, 2007 12:16 pm Post subject: |
|
|
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 |
|
|
nesl247 Veteran
Joined: 15 Jun 2004 Posts: 1614 Location: Florida
|
Posted: Wed Jan 03, 2007 7:49 pm Post subject: |
|
|
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 |
|
|
mdeininger Veteran
Joined: 15 Jun 2005 Posts: 1740 Location: Emerald Isles, observing Dublin's docklands
|
Posted: Wed Jan 03, 2007 8:06 pm Post subject: |
|
|
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 |
|
|
cruzki Tux's lil' helper
Joined: 13 Dec 2005 Posts: 137
|
Posted: Wed Jan 03, 2007 8:06 pm Post subject: |
|
|
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 |
|
|
slycordinator Advocate
Joined: 31 Jan 2004 Posts: 3065 Location: Korea
|
Posted: Thu Jan 04, 2007 5:29 am Post subject: |
|
|
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 |
|
|
rmh3093 Advocate
Joined: 06 Aug 2003 Posts: 2138 Location: Albany, NY
|
Posted: Thu Jan 04, 2007 2:30 pm Post subject: |
|
|
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 |
|
|
slycordinator Advocate
Joined: 31 Jan 2004 Posts: 3065 Location: Korea
|
Posted: Sun Jan 14, 2007 7:48 pm Post subject: |
|
|
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 |
|
|
rmh3093 Advocate
Joined: 06 Aug 2003 Posts: 2138 Location: Albany, NY
|
Posted: Sun Jan 14, 2007 8:21 pm Post subject: |
|
|
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 |
|
|
mdeininger Veteran
Joined: 15 Jun 2005 Posts: 1740 Location: Emerald Isles, observing Dublin's docklands
|
Posted: Sun Jan 14, 2007 8:34 pm Post subject: |
|
|
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 |
|
|
|