opsi client agent reboot

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

opsi client agent reboot

Beitragvon SisterOfMercy » 16 Jun 2017, 21:44

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
Beiträge: 3101
Registriert: 04 Jun 2008, 14:27

Re: opsi client agent reboot

Beitragvon d.oertel » 16 Jun 2017, 22:09

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
opsi support - uib gmbh

For productive opsi installations we recommend support contracts.
http://www.uib.de
http://www.opsi.org

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

Re: opsi client agent reboot

Beitragvon SisterOfMercy » 23 Jun 2017, 01:52

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
Beiträge: 3101
Registriert: 04 Jun 2008, 14:27

Re: opsi client agent reboot

Beitragvon d.oertel » 26 Jun 2017, 10:31

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
opsi support - uib gmbh

For productive opsi installations we recommend support contracts.
http://www.uib.de
http://www.opsi.org


Zurück zu „Free support“

Wer ist online?

Mitglieder in diesem Forum: Yahoo [Bot] und 1 Gast