Skip to content
New issue

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

Set a default ExecStart in rguard.service that blocks shutdown #2

Closed
ryran opened this issue Apr 8, 2017 · 1 comment
Closed

Set a default ExecStart in rguard.service that blocks shutdown #2

ryran opened this issue Apr 8, 2017 · 1 comment
Assignees

Comments

@ryran
Copy link
Owner

ryran commented Apr 8, 2017

The rguard.service file should do something out of the box instead of requiring you to configure it.

I think the most intuitive thing would be for it to block shutdown as long as the service is running, e.g., via --run false.

@ryran ryran self-assigned this Apr 8, 2017
ryran added a commit that referenced this issue Apr 8, 2017
@ryran
Copy link
Owner Author

ryran commented Apr 8, 2017

$ head rguard.service
[Unit]
Description=Reboot Guard

[Service]
# With the following default example, shutdown will ALWAYS be blocked
# This is because the "false" command will never succeed
# In this case, shutdown can only be unblocked by manually stopping/killing rguard.service
ExecStart=/usr/sbin/rguard --run false --interval 86400
#
# NOTE: The following ExecStart lines are EXAMPLES only; modify to suit your needs

@ryran ryran closed this as completed Apr 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant