opsi client agent reboot

Antworten
Benutzeravatar
SisterOfMercy
Beiträge: 1556
Registriert: 22 Jun 2012, 19:18

opsi client agent reboot

Beitrag von SisterOfMercy »

When installing opsi-client-agent wants to reboot.
However, I have a product that needs to be installed after opsi-client-agent, and this also reboots. I have set these products in setup_after_install in the properties of opsi-client-agent.

I would like to cut down on unneeded reboots. I have set the allow_reboot in opsi-client-agent to false, and this works, it doesn't reboot. However, the products in setup_after_install only get installed on the next reboot (the next activation of the client).
Shouldn't opsi-client-agent check for products to install after installation before the reboot check?
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
Benutzeravatar
d.oertel
uib-Team
Beiträge: 3327
Registriert: 04 Jun 2008, 14:27

Re: opsi client agent reboot

Beitrag von d.oertel »

Hello Sister of Mercy,
yep - you are right: It is a known feature request that opsi-script should recheck
the existing action request after the end of every script.
This make sense because a increasing number of users use methods like opsiservicecall
to manipulate the installation flow on the fly.
There is an internal ticket and I hope to do this until the end of the year.

Until this is fixed you have to reboot (i think) - so sorry.

cheers
detlef oertel


Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.

Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.

uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de


Benutzeravatar
SisterOfMercy
Beiträge: 1556
Registriert: 22 Jun 2012, 19:18

Re: opsi client agent reboot

Beitrag von SisterOfMercy »

Code: Alles auswählen

"%SystemRoot%\system32\net.exe" stop "opsiclientd"
"%SystemRoot%\system32\net.exe" start "opsiclientd"
Wouldn't this work?
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
Benutzeravatar
d.oertel
uib-Team
Beiträge: 3327
Registriert: 04 Jun 2008, 14:27

Re: opsi client agent reboot

Beitrag von d.oertel »

Hi,

you think about restarting the opsiclientd while opsi-script is running started from the opsiclientd ?

Hmm, it may prevent the system from a reboot, but it is a very dirty hack ......
I do not want to think about possible side effects.
You are on your own if you doing this.

By the way: it is possible to change the opsiclientd event configuration in a way that no reboots will be done....

cheers
detlef


Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.

Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.

uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de


Antworten