From 24273eff07036366daae34151790ff3732f3bd64 Mon Sep 17 00:00:00 2001 From: june Date: Fri, 14 Feb 2025 23:20:17 +1300 Subject: [PATCH] added systemd unit files --- heathcliff.service | 9 +++++++++ heathcliff.timer | 8 ++++++++ 2 files changed, 17 insertions(+) create mode 100644 heathcliff.service create mode 100644 heathcliff.timer diff --git a/heathcliff.service b/heathcliff.service new file mode 100644 index 0000000..3167339 --- /dev/null +++ b/heathcliff.service @@ -0,0 +1,9 @@ +[Unit] +Description=Send heathcliff to beneral channel + +[Service] +Type=OneShot +# ExecStart=/usr/bin/python3 /home/bread/servers/send_cliff.py +Restart=on-failure +RestartSec=30 +ExecStart=/bin/bash /home/bread/servers/cliff/send_cliff2.sh diff --git a/heathcliff.timer b/heathcliff.timer new file mode 100644 index 0000000..d731f4c --- /dev/null +++ b/heathcliff.timer @@ -0,0 +1,8 @@ +[Unit] +Description=Send heathcliff daily + +[Timer] +OnCalendar=*-*-* 10:00:00 + +[Install] +WantedBy=timers.target