From a2dd00f414b59968ef2762392501d1abaf0ea6fc Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Sat, 18 Jul 2020 23:44:43 -0400 Subject: [PATCH] Add systemd units for ucsAccounts --- systemd/ucsAccounts.service | 10 ++++++++++ systemd/ucsAccounts.timer | 9 +++++++++ 2 files changed, 19 insertions(+) create mode 100644 systemd/ucsAccounts.service create mode 100644 systemd/ucsAccounts.timer 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