[2019-08-25]
maybe forbid creating pycache? [2020-05-29]
I guess what I was confused about was that if the job is running simultaneouslyu to previous instance, it’s silently not running
[2020-03-18]
eh, I’m finding that copy paste in crontabs is not too bad as long as you align everything… [2020-04-08]
it’s easier to align in python, because of string concatenation [2020-01-18]
watchdog? [[systemd]][2020-02-01]
schedule python library [2019-10-24]
to enable the systemd service you can run the following. [[systemd]][2021-02-24]
linux - Proper way to use OnFailure in systemd - Unix & Linux Stack Exchange [[dron]][2020-01-28]
arch linux - systemd: cpu usage of services - Super User [2020-01-28]
systemd - systemctl status not showing CPU/Memory usage? - Ask Ubuntu [2020-01-26]
Systemd: How to make two services mutually exclusive but run both? - Super User [[systemd]][2020-01-26]
systemd.service https://www.freedesktop.org/software/systemd/man/systemd.service.html#TimeoutStartSec= [2020-01-28]
systemd-analyze https://www.freedesktop.org/software/systemd/man/systemd-analyze.html [2020-01-28]
systemd-cgtop [2020-05-04]
systemd, 10 years later: a historical and technical retrospective [2020-05-29]
ok, so timeouts via RuntimeMaxSec work as expected [[systemd]][2021-04-18]
[QUESTION] Why is `systemd-email` so complex ? · Issue 16 · karlicoss/dron [[dron]]Motivating blog post: https://beepb00p.xyz/scheduler.html
Github project: https://github.com/karlicoss/dron
mostly in the blog post, some extra links there too
[2020-02-01]
Rethinking Cronhttps://adam.herokuapp.com/past/2010/4/13/rethinking_cron
Rethinking Cron
[2020-02-29]
good wishlist for missing cron features[2019-08-25]
maybe forbid creating pycache?maybe there should be multiple tags? if two jobs got same tags, they can’t run at the same time
implemented via flocks on files named same as tags
-t --identifier=STRING Show entries with the specified syslog identifier
-p --priority=RANGE Show entries with the specified priority
[2021-01-25]
ugh. did some work, but it seems that it’s just bus communication that still takes cpu and it’s sort of inevitable?Traceback (most recent call last):
File "/home/karlicos/.local/bin/dron", line 11, in <module>
load_entry_point('dron', 'console_scripts', 'dron')()
File "/code/dron/dron.py", line 1168, in main
cmd_monitor(params)
File "/code/dron/dron.py", line 966, in cmd_monitor
_cmd_monitor(managed, params=params)
File "/code/dron/dron.py", line 849, in _cmd_monitor
[service, timer] = gr
ValueError: not enough values to unpack (expected 2, got 1)
[2020-05-29]
I guess what I was confused about was that if the job is running simultaneouslyu to previous instance, it’s silently not running[2020-05-29]
wonder if could email on this![2020-03-18]
eh, I’m finding that copy paste in crontabs is not too bad as long as you align everything…[2020-04-08]
it’s easier to align in python, because of string concatenationcompare:
export_jobs = [
job(at('02:08'), arctee(backups / 'feedbin' / 'feedbin_{utcnow}.json', '--', 'python3.7', soft / 'backup/misc/feedbin.py' ), unit_name='export-feedbin'),
job(at('01:07'), arctee(backups / 'myshows' / 'myshows_{utcnow}.json', '--', 'python3.7', soft / 'backups/myshows/myshows_backup.py' ), unit_name='export-myshows'),
job(at('01:08'), arctee(backups / 'goodreads' / 'goodreads_{utcnow}.json', '--', 'python3.7', soft / 'backups/myshows/myshdows_backup.py'), unit_name='export-myshows'),
]
vs
0 0 * * * $K -s "backup-goodreads" --low -- arctee '/backups/goodreads/goodreads_{utcnow}.xml' -- /soft/backup/goodrexport/run
01 01 * * * $K -s 'backup-pinboard' --low -c -- arctee '/backups/pinboard/bookmarks_{utcnow}.json' -- /soft/backup/pinbexport/run
05 01 * * * $K -s 'backup-lastfm' --low -c -- arctee '/backups/lastfm/lastfm_{utcnow}.json' -- python3.7 /soft/backup/lastfm/lastfm_backup.py
07 01 * * * $K -s "backup-spotify" --low -c -- arctee '/backups/spotify/spotify_{utcnow}.json' -- /soft/backup/spotify/backup
Not frontend, generator?
[2020-01-18]
watchdog? [[systemd]]https://www.freedesktop.org/software/systemd/man/systemd.service.html
WatchdogSec=
Configures the watchdog timeout for a service. The watchdog is activated when the start-up is completed. The service must call sd_notify(3) regularly with "WATCHDOG=1" (i.e. the "keep-alive ping")
[2020-02-01]
schedule python librarynope, just a completely custom scheduler, definitely not ideal
For dron, thinking about it a year later, a large chunk of the convenience in this dron tool would probably be from
and impossible to fix. e.g. add some garbage to onCalendar and try applying
[2019-10-24]
to enable the systemd service you can run the following. [[systemd]]systemctl --user enable --now matrixcli
[2021-02-24]
linux - Proper way to use OnFailure in systemd - Unix & Linux Stack Exchange [[dron]]In the code you run at ExecStopPost=, you can use one of $SERVICE_RESULT, $EXIT_CODE or $EXIT_STATUS to determine the failure condition and act accordingly. See the documentation on those environment variables to check which one is appropriate for you.
hmm can run this on success
[2020-01-28]
arch linux - systemd: cpu usage of services - Super UserIf you enabled the cpuacct cgroup subgroup in the kernel. You can try systemd-cgtop to identify which systemd service causes high cpu usage.
[2020-01-28]
systemd - systemctl status not showing CPU/Memory usage? - Ask UbuntuCPUAccounting = yes
MemoryAccounting = yes
[2020-01-26]
Systemd: How to make two services mutually exclusive but run both? - Super User [[systemd]][2020-01-26]
systemd.service https://www.freedesktop.org/software/systemd/man/systemd.service.html#TimeoutStartSec=wonder if this is useful wrt to dependencies and conflicts
[2020-01-28]
systemd-analyze https://www.freedesktop.org/software/systemd/man/systemd-analyze.htmlsystemd-analyze verify FILE...
The following errors are currently detected:
unknown sections and directives,
missing dependencies which are required to start the given unit,
man pages listed in Documentation= which are not found in the system,
commands listed in ExecStart= and similar which are not found in the system or not executable.
systemctl --user start $(ls ~/.config/systemd/user/ | fzf)
[2020-01-28]
systemd-cgtopsystemd-cgtop — Show top control groups by their resource usage
wonder if I could use it?
[2020-05-04]
systemd, 10 years later: a historical and technical retrospectiveYes, we currently handle socket-triggered, bus-triggered, file-triggered, mount-triggered, automount-triggered, device-triggered
[2020-05-29]
ok, so timeouts via RuntimeMaxSec work as expected [[systemd]]what worked:
what didn’t work
what to improve:
[2021-04-18]
[QUESTION] Why is `systemd-email` so complex ? · Issue 16 · karlicoss/dron [[dron]]Hi ! I'm reading your sources with great interest, and i came out to systemd-email, and it looks like to me that the same output can be achieved with this single command: systemctl --user status myFailingUnit.service --lines 99999 -o cat
Is it really equivalent ?
Rendering context...