List Info

Thread: how to best run a script at boot




how to best run a script at boot
country flaguser name
Switzerland
2007-07-15 04:15:30
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-amd64gentoo.org mailing list


Re: how to best run a script at boot
user name
2007-07-15 04:40:31
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-amd64gentoo.org mailing list


Re: how to best run a script at boot
country flaguser name
Bulgaria
2007-07-15 05:36:57
On Sun, 15 Jul 2007 11:15:30 +0200
Thierry de Coulon <tcoulondecoulon.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-amd64gentoo.org mailing list


Re: Re: how to best run a script at boot
country flaguser name
Switzerland
2007-07-15 07:12:52
On Sunday, 15. July 2007, Duncan wrote:
> Daniel Iliev <dannyilievnet.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-amd64gentoo.org mailing list


Re: how to best run a script at boot
country flaguser name
United States
2007-07-15 11:24:48
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-amd64gentoo.org mailing list


Re: Re: how to best run a script at boot
user name
2007-07-15 12:24:07
> On Sunday, 15. July 2007, Duncan wrote:
>> Daniel Iliev <dannyilievnet.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-amd64gentoo.org mailing list


Re: how to best run a script at boot
country flaguser name
United Kingdom
2007-07-15 16:53:56
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-amd64gentoo.org mailing list


Re: how to best run a script at boot
country flaguser name
Switzerland
2007-07-16 03:33:21
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-amd64gentoo.org mailing list


Re: how to best run a script at boot
country flaguser name
United Kingdom
2007-07-16 12:36:17
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-amd64gentoo.org mailing list


[1-9]

about | contact  Other archives ( Real Estate discussion Medical topics )