Re: how to exec a process in a jail while being on the main host?

2008-04-17 Thread Wojciech Puchar

on the main host (which runs the jail).
How can i run a new process inside the jail with a known JID w/o ssh-ing into 
that jail or doing a lot of strange

manupulations?

I am asking, because i have about 20 jails running and each has a running 
special control daemon which
changes a lot and often. When change occures i need then to enter each jail 
as root, kill the old daemon, start the new one.

This take a lot of time and is really annoying.


man jexec
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


how to exec a process in a jail while being on the main host?

2008-04-16 Thread Artem Kuchin
For example, i have an already runing jail with some JID and i am logged 
in on the main host (which runs the jail).
How can i run a new process inside the jail with a known JID w/o ssh-ing 
into that jail or doing a lot of strange

manupulations?

I am asking, because i have about 20 jails running and each has a 
running special control daemon which
changes a lot and often. When change occures i need then to enter each 
jail as root, kill the old daemon, start the new one.

This take a lot of time and is really annoying.

--
Regards,
Artem


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: how to exec a process in a jail while being on the main host?

2008-04-16 Thread Peter
 For example, i have an already runing jail with some JID and i am logged
 in on the main host (which runs the jail).
 How can i run a new process inside the jail with a known JID w/o ssh-ing
 into that jail or doing a lot of strange
 manupulations?

 I am asking, because i have about 20 jails running and each has a
 running special control daemon which
 changes a lot and often. When change occures i need then to enter each
 jail as root, kill the old daemon, start the new one.
 This take a lot of time and is really annoying.


jls

jexec jid /program/to/exec

jexec 1 /bin/sh


 --
 Regards,
 Artem


 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: how to exec a process in a jail while being on the main host?

2008-04-16 Thread FreeBSD

Try `jexec JID 'command'`

man jexec for more details...

You can obtain the JID of your jails with the command `jls`

Martin

Artem Kuchin a écrit :
For example, i have an already runing jail with some JID and i am 
logged in on the main host (which runs the jail).
How can i run a new process inside the jail with a known JID w/o 
ssh-ing into that jail or doing a lot of strange

manupulations?

I am asking, because i have about 20 jails running and each has a 
running special control daemon which
changes a lot and often. When change occures i need then to enter each 
jail as root, kill the old daemon, start the new one.

This take a lot of time and is really annoying.

--
Regards,
Artem


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]