We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create file /etc/systemd/system/my_script.service with following contents:
[Unit] Description=My script that requires network After=network.target [Service] Type=oneshot ExecStart=/full/path/to/my_script.sh [Install] WantedBy=multi-user.target
Then execute:
sudo systemctl daemon-reload sudo systemctl enable my_script
The text was updated successfully, but these errors were encountered:
Also, may be used: supervisord, rc.local, s6.overlay
Sorry, something went wrong.
Areso
No branches or pull requests
Systemd editing
Create file /etc/systemd/system/my_script.service with following contents:
Then execute:
sudo systemctl daemon-reload
sudo systemctl enable my_script
The text was updated successfully, but these errors were encountered: