diff options
author | David Timber <dxdt@dev.snart.me> | 2025-04-14 19:37:42 +0200 |
---|---|---|
committer | David Timber <dxdt@dev.snart.me> | 2025-04-14 19:37:42 +0200 |
commit | c2178aa9e7af2bff38af7f62df07b0858b66abeb (patch) | |
tree | 88c7b87ef7d6268419f25ca06ce5c28a487958a4 /src/palhm/conf | |
parent | c2e41c5baca02e15c1b9d282280314d3e13d4814 (diff) |
Change command invocation semantics to ...
`python -m palhm`
Diffstat (limited to 'src/palhm/conf')
-rw-r--r-- | src/palhm/conf/crontab | 4 | ||||
-rw-r--r-- | src/palhm/conf/palhm-boot-report.service | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/palhm/conf/crontab b/src/palhm/conf/crontab index d0eeda6..9e59a16 100644 --- a/src/palhm/conf/crontab +++ b/src/palhm/conf/crontab @@ -1,6 +1,6 @@ # PALHM will produce stderr on exception. Mail the output to root MAILTO="root" # Run default task every Sunday at midnight -0 0 * * sun root /var/lib/PALHM/src/palhm.py -q run +0 0 * * sun root python -m palhm -q run # Check dnssec validity every hour -# 0 * * * * root systemd-run -qP -p User=palhm -p Nice=15 -p ProtectSystem=strict -p ReadOnlyPaths=/ -p PrivateDevices=true --wait /var/lib/PALHM/src/palhm.py -q run check-dnssec +# 0 * * * * root systemd-run -qP -p User=palhm -p Nice=15 -p ProtectSystem=strict -p ReadOnlyPaths=/ -p PrivateDevices=true --wait python -m palhm -q run check-dnssec diff --git a/src/palhm/conf/palhm-boot-report.service b/src/palhm/conf/palhm-boot-report.service index 0b4ba67..16a7c6d 100644 --- a/src/palhm/conf/palhm-boot-report.service +++ b/src/palhm/conf/palhm-boot-report.service @@ -4,7 +4,7 @@ After=postfix.service sendmail.service exim.service dovecot.service network-onli [Service] Type=oneshot -ExecStart=/var/lib/PALHM/src/palhm.py -q boot-report +ExecStart=/usr/bin/python -m palhm -q boot-report Nice=10 [Install] |