diff --git a/converge.service b/converge.service new file mode 100644 index 0000000..2fdc2a2 --- /dev/null +++ b/converge.service @@ -0,0 +1,21 @@ +[Unit] +Description=Converge - auto-sync git repositories +Documentation=https://github.com/jbrechtel/converge +After=network-online.target +Wants=network-online.target + +[Service] +Type=simple +ExecStart=%h/.local/bin/converge --config %h/.config/converge/config.yaml +Restart=on-failure +RestartSec=10 + +# Security hardening +NoNewPrivileges=yes +PrivateTmp=yes + +# Allow notify-send to reach the desktop session +Environment=DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/%U/bus + +[Install] +WantedBy=default.target