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
easy method to run when-changed as a (systemd or other type of) service
The text was updated successfully, but these errors were encountered:
You can simply create a .service file at /etc/systemd/system/ with the following content:
/etc/systemd/system/
[Unit] Description=My description [Service] Type=simple ExecStart=/path/to/when-changed /path/to/watch "${COMMAND_TO_EXECUTE}" Restart=always RestartSec=3 [Install] WantedBy=multi-user.target
In my use case I had to add restart because I am afraid OS can terminate my process after some time but I would not like to let it heppen.
restart
Sorry, something went wrong.
No branches or pull requests
easy method to run when-changed as a (systemd or other type of) service
The text was updated successfully, but these errors were encountered: