Skip to content

Conversation

@meman0303
Copy link

I added the script and set the new env variable

@meman0303 meman0303 requested a review from jake-molnia August 27, 2025 21:30
@jake-molnia
Copy link
Contributor

I like this but we should make this a systemd service:

Description=Sending Slack before shutdown.
Requires=network.target
Before=shutdown.target reboot.target

[Service]
Type=oneshot
RemainAfterExit=true
ExecStart=/bin/true
ExecStop=/Scripts/<name> shutdown

[Install]
WantedBy=multi-user.target

@jake-molnia
Copy link
Contributor

can we setup and test something like this - that way we dont have to trust someone else will use our script!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants