* [gentoo-amd64] how to best run a script at boot
@ 2007-07-15 9:15 Thierry de Coulon
2007-07-15 9:40 ` Michael Ballard
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Thierry de Coulon @ 2007-07-15 9:15 UTC (permalink / raw
To: gentoo-amd64
Hello,
I find myself again needing to run a few things on Winblow, so I reinstalled
my "old" vmware (I have a workstation 5 license).
My problem is that while everything installed well, on the next start I had no
network more. I've found out that running /usr/lib/vmware/net-services.sh
creates the missing /dev/vmnet0, so now I'd like that script to be run every
start.
On one list, someone suggested adding the script to /etc/rc.d and then
running "rc-update add <script> default". I've done that during Gentoo
install, but I was wondering if it was a good idea to add a "non system"
script to default.
Thierry
--
gentoo-amd64@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-amd64] how to best run a script at boot
2007-07-15 9:15 [gentoo-amd64] how to best run a script at boot Thierry de Coulon
@ 2007-07-15 9:40 ` Michael Ballard
2007-07-15 10:36 ` Daniel Iliev
2007-07-15 21:53 ` Peter Humphrey
2 siblings, 0 replies; 10+ messages in thread
From: Michael Ballard @ 2007-07-15 9:40 UTC (permalink / raw
To: gentoo-amd64
Greetings,
I cannot speak for everyone but I cannot see the harm of having a "non
system" script executing before user login is possible, the script
being of the non-service nature.
You may want to look into local.start in the /etc/conf.d directory.
Local should run on start up by default and executes as the last
thing, (someone please correct me if I am wrong). This might be
better a better solution then having a "service".
Good Day,
Mike B.
--
gentoo-amd64@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-amd64] how to best run a script at boot
2007-07-15 9:15 [gentoo-amd64] how to best run a script at boot Thierry de Coulon
2007-07-15 9:40 ` Michael Ballard
@ 2007-07-15 10:36 ` Daniel Iliev
2007-07-15 11:31 ` [gentoo-amd64] " Duncan
2007-07-15 16:24 ` [gentoo-amd64] " Dustin J. Mitchell
2007-07-15 21:53 ` Peter Humphrey
2 siblings, 2 replies; 10+ messages in thread
From: Daniel Iliev @ 2007-07-15 10:36 UTC (permalink / raw
To: gentoo-amd64
On Sun, 15 Jul 2007 11:15:30 +0200
Thierry de Coulon <tcoulon@decoulon.ch> wrote:
> Hello,
>
> I find myself again needing to run a few things on Winblow, so I
> reinstalled my "old" vmware (I have a workstation 5 license).
> My problem is that while everything installed well, on the next start
> I had no network more. I've found out that
> running /usr/lib/vmware/net-services.sh creates the
> missing /dev/vmnet0, so now I'd like that script to be run every
> start. On one list, someone suggested adding the script to /etc/rc.d
> and then running "rc-update add <script> default". I've done that
> during Gentoo install, but I was wondering if it was a good idea to
> add a "non system" script to default.
>
> Thierry
>
AFAIK the places intended for that purpose are "/etc/conf.d/local.start"
and "/etc/conf.d/local.stop" for starting and stopping custom programs
at boot and shut down time respectively. So, you may want to put that
line in "/etc/conf.d/local.start"
--
Best regards,
Daniel
--
gentoo-amd64@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* [gentoo-amd64] Re: how to best run a script at boot
2007-07-15 10:36 ` Daniel Iliev
@ 2007-07-15 11:31 ` Duncan
2007-07-15 12:12 ` Thierry de Coulon
2007-07-15 16:24 ` [gentoo-amd64] " Dustin J. Mitchell
1 sibling, 1 reply; 10+ messages in thread
From: Duncan @ 2007-07-15 11:31 UTC (permalink / raw
To: gentoo-amd64
Daniel Iliev <danny@ilievnet.com> posted
20070715103658.3A50E9521D@mail.ilievnet.com, excerpted below, on Sun, 15
Jul 2007 13:36:57 +0300:
> AFAIK the places intended for that purpose are "/etc/conf.d/local.start"
> and "/etc/conf.d/local.stop" for starting and stopping custom programs
> at boot and shut down time respectively. So, you may want to put that
> line in "/etc/conf.d/local.start"
I'll third the idea. I've been using local.start to run a couple scripts
of my own for some time. It "just works" as they say. Just add the
"local" service to your default or whatever runlevel, and it'll start and
stop anything you add to the conf.d local.st(art|op), without having to
setup a whole fancy service.
The only caveat is that local is the last thing started and the first
thing stopped, so if you need something started earlier or stopped later,
you have to change things a bit. I'd still recommend starting with the
local service, however, and going from there, since it's tested, and
future changes will be done with it in mind, so it's less likely to break
with future updates than something you create entirely on your own.
--
Duncan - List replies preferred. No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master." Richard Stallman
--
gentoo-amd64@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-amd64] Re: how to best run a script at boot
2007-07-15 11:31 ` [gentoo-amd64] " Duncan
@ 2007-07-15 12:12 ` Thierry de Coulon
2007-07-15 17:24 ` Nuitari
0 siblings, 1 reply; 10+ messages in thread
From: Thierry de Coulon @ 2007-07-15 12:12 UTC (permalink / raw
To: gentoo-amd64
On Sunday, 15. July 2007, Duncan wrote:
> Daniel Iliev <danny@ilievnet.com> posted
(...)
> > AFAIK the places intended for that purpose are "/etc/conf.d/local.start"
(...)
> I'll third the idea.
(...)
Thanks all of you. I'll put it in local.start and see if it does what I'd like
it to do :)
Thierry
--
gentoo-amd64@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-amd64] how to best run a script at boot
2007-07-15 10:36 ` Daniel Iliev
2007-07-15 11:31 ` [gentoo-amd64] " Duncan
@ 2007-07-15 16:24 ` Dustin J. Mitchell
1 sibling, 0 replies; 10+ messages in thread
From: Dustin J. Mitchell @ 2007-07-15 16:24 UTC (permalink / raw
To: gentoo-amd64
On Sun, Jul 15, 2007 at 01:36:57PM +0300, Daniel Iliev wrote:
> AFAIK the places intended for that purpose are "/etc/conf.d/local.start"
> and "/etc/conf.d/local.stop" for starting and stopping custom programs
> at boot and shut down time respectively. So, you may want to put that
> line in "/etc/conf.d/local.start"
As an example, I used this once upon a time to tune my ethernet
adapter's settings (with mii-tool), since autoneg wasn't working with
the switch it was on.
Dustin
--
gentoo-amd64@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-amd64] Re: how to best run a script at boot
2007-07-15 12:12 ` Thierry de Coulon
@ 2007-07-15 17:24 ` Nuitari
0 siblings, 0 replies; 10+ messages in thread
From: Nuitari @ 2007-07-15 17:24 UTC (permalink / raw
To: gentoo-amd64
> On Sunday, 15. July 2007, Duncan wrote:
>> Daniel Iliev <danny@ilievnet.com> posted
> (...)
>>> AFAIK the places intended for that purpose are "/etc/conf.d/local.start"
> (...)
>> I'll third the idea.
> (...)
>
> Thanks all of you. I'll put it in local.start and see if it does what I'd like
> it to do :)
>
> Thierry
You know that there is an ebuild that gets you an init script for vmware
5?
--
gentoo-amd64@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-amd64] how to best run a script at boot
2007-07-15 9:15 [gentoo-amd64] how to best run a script at boot Thierry de Coulon
2007-07-15 9:40 ` Michael Ballard
2007-07-15 10:36 ` Daniel Iliev
@ 2007-07-15 21:53 ` Peter Humphrey
2007-07-16 8:33 ` Thierry de Coulon
2 siblings, 1 reply; 10+ messages in thread
From: Peter Humphrey @ 2007-07-15 21:53 UTC (permalink / raw
To: gentoo-amd64
On Sunday 15 July 2007 10:15, Thierry de Coulon wrote:
> My problem is that while everything installed well, on the next start I had
> no network more. I've found out that running
> /usr/lib/vmware/net-services.sh creates the missing /dev/vmnet0, so now I'd
> like that script to be run every start.
I think I'd prefer to find out why that script isn't being run
from /etc/init.d/vmware, or if it is, why it isn't setting up the network
connection properly. By the way, what is "workstation 5"? And which kind of
vmware are you using? Workstation? Server?
On this box, installing vmware-server pulls in vmware-modules, which builds
two kernel modules: vmnet and vmmod. The former should be setting your
network up.
--
Rgds
Peter.
Linux Counter 5290, Aug 93
--
gentoo-amd64@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-amd64] how to best run a script at boot
2007-07-15 21:53 ` Peter Humphrey
@ 2007-07-16 8:33 ` Thierry de Coulon
2007-07-16 17:36 ` Peter Humphrey
0 siblings, 1 reply; 10+ messages in thread
From: Thierry de Coulon @ 2007-07-16 8:33 UTC (permalink / raw
To: gentoo-amd64
On Sunday, 15. July 2007, Peter Humphrey wrote:
> I think I'd prefer to find out why that script isn't being run
> from /etc/init.d/vmware, or if it is, why it isn't setting up the network
> connection properly. By the way, what is "workstation 5"? And which kind of
> vmware are you using? Workstation? Server?
Hum... "workstation 5" meant vmware, kind "workstation", version 5.5.3
> On this box, installing vmware-server pulls in vmware-modules, which builds
> two kernel modules: vmnet and vmmod. The former should be setting your
> network up.
Well, as I have a license to VMWare Workstation 5, I installed from the VMWare
tarball, I didn't emerge (don't know if there is an ebuild for workstation,
but I feared if there is, it might install version 6 and I have no license
for that one).
Both modules were build, vmmon and vmnet are loaded (so says lsmod)
but /dev/vmnet0 is not created. This happens if I
run /usr/lib/vmare/net-services.sh, so I have to find a way to have it run
autmaticaly. Adding "/usr/lib/vmare/net-services.sh start"
to /etc/conf.d/local.start does work.
> --
> Rgds
> Peter.
> Linux Counter 5290, Aug 93
Regards,
Thierry
--
gentoo-amd64@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-amd64] how to best run a script at boot
2007-07-16 8:33 ` Thierry de Coulon
@ 2007-07-16 17:36 ` Peter Humphrey
0 siblings, 0 replies; 10+ messages in thread
From: Peter Humphrey @ 2007-07-16 17:36 UTC (permalink / raw
To: gentoo-amd64
On Monday 16 July 2007 09:33, Thierry de Coulon wrote:
> On Sunday, 15. July 2007, Peter Humphrey wrote:
> > I think I'd prefer to find out why that script isn't being run
> > from /etc/init.d/vmware, or if it is, why it isn't setting up the network
> > connection properly. By the way, what is "workstation 5"? And which kind
> > of vmware are you using? Workstation? Server?
>
> Hum... "workstation 5" meant vmware, kind "workstation", version 5.5.3
Oh, I see what you mean. Sorry for being thick.
> I didn't emerge (don't know if there is an ebuild for workstation, but I
> feared if there is, it might install version 6 and I have no license for
> that one).
There is one:
$ eix vmware-workstation
* app-emulation/vmware-workstation
Available versions: 4.5.3.19414-r7 5.5.4.44386 [M]~6.0.0.45731
[M]~6.0.0.45731[1]
Homepage:
http://www.vmware.com/products/desktop/ws_features.html
Description: Emulate a complete PC on your PC without the usual
performance overhead of most emulators
* app-emulation/vmware-workstation-tools
Available versions: *4.5.3-r1 *4.5.3-r1[1] ~5.5.1-r2 ~5.5.1-r2[1] ~5.5.2
~5.5.2[1] ~5.5.3 ~5.5.3[1]
Homepage: http://www.vmware.com/
Description: Guest-os tools for VMware Workstation
...from which it seems you can install any of several versions. You might want
to try emerging, say, 5.5.4.44386 and seeing if that works better.
> Both modules were build, vmmon and vmnet are loaded (so says lsmod)
> but /dev/vmnet0 is not created. This happens if I
> run /usr/lib/vmare/net-services.sh, so I have to find a way to have it run
> autmaticaly. Adding "/usr/lib/vmare/net-services.sh start"
> to /etc/conf.d/local.start does work.
Hmm. Interesting. Not sure I can help with that, other than trying the portage
version. I know that Mike Auty put a lot of work into getting the ebuilds to
work, and he's a friendly chap, always ready to help.
--
Rgds
Peter.
Linux Counter 5290, Aug 93
--
gentoo-amd64@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2007-07-16 21:47 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-15 9:15 [gentoo-amd64] how to best run a script at boot Thierry de Coulon
2007-07-15 9:40 ` Michael Ballard
2007-07-15 10:36 ` Daniel Iliev
2007-07-15 11:31 ` [gentoo-amd64] " Duncan
2007-07-15 12:12 ` Thierry de Coulon
2007-07-15 17:24 ` Nuitari
2007-07-15 16:24 ` [gentoo-amd64] " Dustin J. Mitchell
2007-07-15 21:53 ` Peter Humphrey
2007-07-16 8:33 ` Thierry de Coulon
2007-07-16 17:36 ` Peter Humphrey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox