diff options
Diffstat (limited to 'systemd')
| -rw-r--r-- | systemd/boobbot.service | 13 | ||||
| -rw-r--r-- | systemd/boobjob.timer | 11 |
2 files changed, 24 insertions, 0 deletions
diff --git a/systemd/boobbot.service b/systemd/boobbot.service new file mode 100644 index 0000000..67a5584 --- /dev/null +++ b/systemd/boobbot.service @@ -0,0 +1,13 @@ +# Service to load and execute the boobbot timer + +[Unit] +Description=Posts a boob joke to fedi +Wants=boobjob.timer + +[Service] +Type=oneshot +ExecStart=$SOURCE/boobbot +EnvironmentFile=$SOURCE/.env + +[Install] +WantedBy=multi-user.target diff --git a/systemd/boobjob.timer b/systemd/boobjob.timer new file mode 100644 index 0000000..df6354b --- /dev/null +++ b/systemd/boobjob.timer @@ -0,0 +1,11 @@ +# Timer for posting a boob joke once a day +[Unit] +Description=Posts a boob joke +Requires=boobbot.service + +[Timer] +Unit=boobbot.service +OnCalendar=daily + +[Install] +WantedBy=timers.target |
