diff --git a/systemd/ucsAccounts.service b/systemd/ucsAccounts.service new file mode 100644 index 0000000..6b1a701 --- /dev/null +++ b/systemd/ucsAccounts.service @@ -0,0 +1,10 @@ +[Unit] +Description=Update UCS Accounts +OnFailure=status-email-admin@%n.service + +[Service] +User=adam +Type=oneshot +TimeoutStartSec=600 +WorkingDirectory=/home/adam/memberPlumbing/ +ExecStart=/usr/bin/python3 -u /home/adam/.poetry/bin/poetry run ucsAccounts diff --git a/systemd/ucsAccounts.timer b/systemd/ucsAccounts.timer new file mode 100644 index 0000000..f2869cc --- /dev/null +++ b/systemd/ucsAccounts.timer @@ -0,0 +1,9 @@ +[Unit] +Description=Hourly UCS Accounts update + +[Timer] +OnCalendar=*:0/15 +Persistent=true + +[Install] +WantedBy=timers.target