Skip to content

Instantly share code, notes, and snippets.

@djamp42
Created March 8, 2021 03:14
Show Gist options
  • Save djamp42/ef8b9d72970988334b7fe96195244e04 to your computer and use it in GitHub Desktop.
Save djamp42/ef8b9d72970988334b7fe96195244e04 to your computer and use it in GitHub Desktop.
Oxidized SystemD
# 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