Seite 1 von 1

opsi client agent reboot

Verfasst: 16 Jun 2017, 21:44
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?

Re: opsi client agent reboot

Verfasst: 16 Jun 2017, 22:09
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

Re: opsi client agent reboot

Verfasst: 23 Jun 2017, 01:52
von SisterOfMercy

Code: Alles auswählen

"%SystemRoot%\system32\net.exe" stop "opsiclientd"
"%SystemRoot%\system32\net.exe" start "opsiclientd"
Wouldn't this work?

Re: opsi client agent reboot

Verfasst: 26 Jun 2017, 10:31
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