Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added basic systemd service for launching MAUCacheAdmin
systemd service that launches MAUCacheAdmin at boot and auto-restarts if the service unexpectedly quits.
- Loading branch information
Bryson Tyrrell
committed
Oct 26, 2016
1 parent
88f137e
commit 371dec7
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[Unit] | ||
Description=Microsoft AutoUpdate Cache Admin Runner | ||
|
||
[Service] | ||
Type=simple | ||
ExecStart=/bin/sh -c "/usr/local/MAUCacheAdmin --CachePath:/var/www/html --CheckInterval:15" | ||
ExecStopPost=/bin/sh -c 'echo "The MAUCacheAdmin service has stopped: Automatic restart in 5 minutes." | /usr/bin/mail -s "MAUCacheAdmin Stopped" -a "From: MAUCacheAdmin <admin@maucacheserver>" you@your.org' | ||
Restart=always | ||
RestartSec=300 | ||
|
||
[Install] | ||
WantedBy=multi-user.target |