update notes, helperbot, phosphorus
This commit is contained in:
parent
80c168f9a6
commit
8dab75afb0
29 changed files with 1340 additions and 46 deletions
12
phosphorus/etc/systemd/system/3days@.timer
Normal file
12
phosphorus/etc/systemd/system/3days@.timer
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
[Unit]
|
||||
Description=Runs service every 3 days for %i service
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*-*-1,3,6,9,12,15,18,21,24,27,30 00:00:00
|
||||
AccuracySec=6h
|
||||
RandomizedDelaySec=1h
|
||||
Persistent=true
|
||||
Unit=%i.service
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
12
phosphorus/etc/systemd/system/daily@.timer
Normal file
12
phosphorus/etc/systemd/system/daily@.timer
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
[Unit]
|
||||
Description=Runs service daily for %i service
|
||||
|
||||
[Timer]
|
||||
OnCalendar=daily
|
||||
AccuracySec=6h
|
||||
RandomizedDelaySec=1h
|
||||
Persistent=true
|
||||
Unit=%i.service
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
[Unit]
|
||||
Description=helperbot backup command
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/local/bin/helperbot --backup
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
[Unit]
|
||||
Description=helperbot backup command
|
||||
|
||||
[Timer]
|
||||
OnCalendar=daily
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
[Unit]
|
||||
Description=helperbot docker cleanup command
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/local/bin/helperbot --docker-cleanup
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
[Unit]
|
||||
Description=helperbot docker cleanup command
|
||||
|
||||
[Timer]
|
||||
OnBootSec=15min
|
||||
OnUnitActiveSec=3d
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
[Unit]
|
||||
Description=helperbot vacuum command
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/local/bin/helperbot --vacuum
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
[Unit]
|
||||
Description=helperbot vacuum command
|
||||
|
||||
[Timer]
|
||||
OnBootSec=15min
|
||||
OnUnitActiveSec=3d
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
18
phosphorus/etc/systemd/system/helperbot@.service
Normal file
18
phosphorus/etc/systemd/system/helperbot@.service
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
# The systemd unit for running helperbot via systemd
|
||||
# Automatically ran using timer services, ensure that body daily@.timer and 3days@.timer are also in /etc/systemd/systemd
|
||||
# Then do sudo systemctl daemon-reload
|
||||
#
|
||||
# Enable as so:
|
||||
# sudo systemctl enable {3days|daily}@helperbot@{<argument>}.timer
|
||||
#
|
||||
# For example, to create and start immediately:
|
||||
# sudo systemctl enable --now 3days@helperbot@--docker-cleanup.timer
|
||||
# sudo systemctl enable --now 3days@helperbot@--vacuum.timer
|
||||
# sudo systemctl enable --now daily@helperbot@--backup.timer
|
||||
|
||||
[Unit]
|
||||
Description=Synth.Download helperbot maintenance script
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/local/bin/helperbot %i
|
||||
Loading…
Add table
Add a link
Reference in a new issue