Created
March 8, 2021 03:14
-
-
Save djamp42/ef8b9d72970988334b7fe96195244e04 to your computer and use it in GitHub Desktop.
Oxidized SystemD
This file contains hidden or 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
# Put this file in /etc/systemd/system. | |
# | |
# To set OXIDIZED_HOME instead of the default, | |
# ~oxidized/.config/oxidized, uncomment (and modify as required) the | |
# "Environment" variable below so systemd sets the correct | |
# environment. | |
[Unit] | |
Description=Oxidized - Network Device Configuration Backup Tool | |
After=network-online.target multi-user.target | |
Wants=network-online.target | |
[Service] | |
ExecStart=/usr/local/bin/oxidized | |
User=oxidized | |
KillSignal=SIGKILL | |
#Environment="OXIDIZED_HOME=/etc/oxidized" | |
Restart=on-failure | |
RestartSec=300s | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment