Is there a debug/learning/warn mode for systemd sandboxing (e.g., ProtectSystem=strict)?
I have some scripts that run as hooks after dhcpcd events are generated. Bizarrely, every few days this script fails with WEXITSTATUS 2
, something that doesn’t happen if I turn off sandboxing. Thing is, I have no idea how I would go about figuring out which system call failed so I don’t know which ReadWritePaths
(for instance) I need to add.
How to start, stop and restart a set of systemd service units as a group?
I have created a systemd “target” which allows starting of a group of services together. However, it does not work when trying to stop the group of services.
uwsgi and systemd configuration
Installing uwsgi via apt in Ubuntu 22.04 creates all necessary config files for systemd. /run/systemd/generator.late/uwsgi.service
calls /etc/init.d/uwsgi
to start/stop the service, which in turn reads the configured apps from /etc/uwsgi/apps-enabled/
.
systemd : passing exit status of service ( MONITOR_EXIT_STATUS) using OnFailure=
I’m using systemd v250.5. I want to pass EXIT_CODE
& EXIT_STATUS
of service when it fails.
Run a service only if a target was reached, or a service did not run
I need to run a service on shutdown, but only if emergency.target was not reached, or a specific service did not run.