Skip to content

Commit

Permalink
Create callback-restart.service
Browse files Browse the repository at this point in the history
  • Loading branch information
meramsey authored Oct 24, 2021
1 parent cced641 commit 8a6965c
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions systemd/callback-restart.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash
# Short-Description: Start daemon at boot time
# Description: Enable service provided by daemon.
# Save to : /etc/systemd/system/callback-restart.service

[Unit]
Description=Callback Restart notification
Before=shutdown.target reboot.target halt.target
After=network.target

[Service]
Type=oneshot
RemainAfterExit=true
ExecStart=/usr/local/bin/callback-start
ExecStop=/usr/local/bin/callback-shutdown

[Install]
WantedBy=multi-user.target

0 comments on commit 8a6965c

Please sign in to comment.