Am I missing some #environmentVariable when running #dnf with #run0, it throws at me 203 #exitcode

I checked the run0 and dnf #manpage, but found nothing specific :/

Anyway, run0 still is better than #sudo, as i like having #gnome show me #polkit password dialog, and I know then at least I will enter that password into correct application.

#linux #fedora #systemd

Continuing my fun with systemd service files - is there any way to pass the definition of the exit codes through?

e.g. my unit.service does an `exit 5` in certain cases.

In journalctl that shows up as 'status=5/NOTINSTALLED'

I think that comes from here

https://www.freedesktop.org/software/systemd/man/latest/systemd.exec.html#Process%20Exit%20Codes

I'd like it say 5/NOSYNCREQUIRED or similar. I'd be happy to chose codes that aren't pre-defined if that helps?

Is this possible?

#linux #systemd #exitcode

systemd.exec

Exit codes are useful, e.g. when embedding #pandoc in wrapper-scripts. Pandoc exiting with code zero signals success, with other numbers indicating the type of error that occurred. For example, #exitCode 84 hints at a problem in the Lua subsystem.
The full list is in the manual:
https://pandoc.org/MANUAL.html#exit-codes
Pandoc - Pandoc User’s Guide