Skip to content

Commit

Permalink
cron: switch splatoon{2,3}ink/update to systemd timer
Browse files Browse the repository at this point in the history
  • Loading branch information
fetus-hina committed Nov 19, 2024
1 parent 334de3c commit e1e8ae1
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 18 deletions.
11 changes: 11 additions & 0 deletions data/systemd/statink-update-s2ink.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Unit]
Description=Run stat.ink splatoon2-ink/update
After=paths.target multi-user.target network.target network-online.target NetworkManager.service

[Service]
Type=oneshot
ExecStart=/var/www/sites/stat.ink/app.dep/current/yii splatoon2-ink/update
SyslogIdentifier=statink-update-s2ink
WorkingDirectory=/var/www/sites/stat.ink/app.dep/current
User=stat.ink
Group=stat.ink
8 changes: 8 additions & 0 deletions data/systemd/statink-update-s2ink.timer
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[Unit]
Description=Run stat.ink splatoon2-ink/update (timer)

[Timer]
OnCalendar=*:04

[Install]
WantedBy=timers.target
11 changes: 11 additions & 0 deletions data/systemd/statink-update-s3ink.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Unit]
Description=Run stat.ink splatoon3-ink/update
After=paths.target multi-user.target network.target network-online.target NetworkManager.service

[Service]
Type=oneshot
ExecStart=/var/www/sites/stat.ink/app.dep/current/yii splatoon3-ink/update
SyslogIdentifier=statink-update-s3ink
WorkingDirectory=/var/www/sites/stat.ink/app.dep/current
User=stat.ink
Group=stat.ink
8 changes: 8 additions & 0 deletions data/systemd/statink-update-s3ink.timer
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[Unit]
Description=Run stat.ink splatoon3-ink/update (timer)

[Timer]
OnCalendar=*:02

[Install]
WantedBy=timers.target
1 change: 0 additions & 1 deletion schedule/schedule.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@

require __DIR__ . '/schedule/salmon2.php';
require __DIR__ . '/schedule/salmon3.php';
require __DIR__ . '/schedule/schedule.php';
require __DIR__ . '/schedule/user-json.php';
17 changes: 0 additions & 17 deletions schedule/schedule/schedule.php

This file was deleted.

0 comments on commit e1e8ae1

Please sign in to comment.