FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit 1c9e5a31 authored by James Nairn's avatar James Nairn
Browse files

Export Support

Added systemd files to support weekly_export.sh
Added usage_notes.txt to list troubleshooting commands
parent 5d955a7e
No related branches found
No related tags found
1 merge request!6Testing
[Unit]
Description=Runs Canto weekly_export.sh script
After=network-online.target
Wants=network-online.target
[Service]
WorkingDirectory=/data/export/canto-space/canto
ExecStart=/data/export/canto-space/weekly_export.sh
[Install]
WantedBy=default.target
\ No newline at end of file
[Unit]
Description=Run canto_weekly.service on Weds at 12pm.
[Timer]
OnCalendar=Weds 12:00:00
[Install]
WantedBy=timers.target
\ No newline at end of file
List all timers
# systemctl list-timers --all
Should see output like
# root@flybase-vm:/data/export/canto-space/logs# systemctl list-timers --all
NEXT LEFT LAST PASSED UNIT ACTIVATES
Mon 2020-12-07 01:00:00 GMT 5 days left Mon 2020-11-30 01:00:35 GMT 1 day 10h ago canto_weekly.timer canto_weekly.service
Basic consistency check of script (no output is good)
# bash -n weekly_routine.sh
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment