Add systemd units for ucsAccounts
This commit is contained in:
parent
5a39c5cae9
commit
a2dd00f414
10
systemd/ucsAccounts.service
Normal file
10
systemd/ucsAccounts.service
Normal file
@ -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
|
9
systemd/ucsAccounts.timer
Normal file
9
systemd/ucsAccounts.timer
Normal file
@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=Hourly UCS Accounts update
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*:0/15
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
Reference in New Issue
Block a user