Re: Help with running a script at shutdown and make it run first before other services

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



12.12.2024 02:37, David Elie-Dit-Cosaque wrote:
...
> So I did a test listing every crio-*.scope present in the cluster in the> After= directive and it worked !

You started with the question "before any other service". This is rather different from what you are asking now.

...>
Is there a way to use wildcards in After= like After=*.scope or something
equivalent. I cannot hardcode the .scope names because they are random.



That is what I told you already.

mkdir /etc/systemd/system/crio-.scope.d
echo "[Unit]" > /etc/systemd/system/crio-.scope.d/order.conf
echo "Before=myscript.service" >> /etc/systemd/system/crio-.scope.d/order.conf



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux