How to stop all units belonging to the same target?
I’m wondering how to stop all units that are grouped together by the same target.
I’m wondering how to stop all units that are grouped together by the same target.
XDG_RUNTIME_DIR is necessary for systemctl --user to work.
I’m trying to implement a mechanism of automated backup using udev rules and systemd. The idea is to launch a backup routine upon hot-plugging a specific storage device, quite similar to this question, for which I provided an answer myself by the way, but here I’m interesteded in discussing some further tweaks. Namely I want the device to be umounted after the backup service finishes.
There is a service I want to run only when another service fails ([Unit] OnFailure=foo), but I don’t want this service (foo) to start up automatically on boot. One option is running systemctl disable foo, but I’m looking for another way.
We have an internal application with systemd services that we want to deploy outside of the normal systemd directories (/etc/systemd/system and /usr/lib/systemd/system). That location is on another disk (/mnt/data in the example).
I have a systemd service that is a console application, meaning that it is controlled by sending commands to its stdin and it outputs information to sdout. How can I set up the systemd service so that I can connect to its stdin and give it commands at any point, then detach from this, and repeat when necessary?
When I execute a program that I work on, it fails with the following message:
Usually I use tail -f /var/log/messages to get updates if there are new lines.