Hi,
I have written a script which suppose to run at start-up and set a given IP.
I can see systemd service is running when I check the status but I can find the expected result (new IP).
Is there anything wrong with the following format of the service file?
[Unit]
Description=Config IP
ConditionFileIsExecutable=<path_to_script>/script
After=network.target
StartLimitIntervalSec=0
[Service]
ExecStart=<path_to_script>/script
[Install]
WantedBy=multi-user.target
Description=Config IP
ConditionFileIsExecutable=<path_to_script>/script
After=network.target
StartLimitIntervalSec=0
[Service]
ExecStart=<path_to_script>/script
[Install]
WantedBy=multi-user.target
Is it ok to restart network service with the script I use?
Regards,
--
_______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx