Skip to main content
2 votes

Is obex a unit of systemd?

It's not a system service, but a per-user service (= part of the user's login session, has the same file access rights as the user), so try systemctl --user list-units and systemctl --user status obex....
telcoM's user avatar
  • 101k
2 votes
Accepted

How to force `systemctl show --all *` to list all units and instances?

Your shell is expanding *, so systemctl is given a list of the files in the current directory. You need to escape it: systemctl show --all '*'
Stephen Kitt's user avatar
2 votes
Accepted

Can I make a script that Reboots and continues after?

@larsks already provided the definitive answer here as a comment - but just for the lafs.... #!/bin/bash STATE="/tmp/$( basename "$BASHSOURCE" )" REPEAT=10 function install() { ...
symcbean's user avatar
  • 5,839
2 votes
Accepted

print statement in python scripts invoked through systemd .service

So your Blink.py apparently prints the characters to its standard output. By default, the standard output of any processes started as services usually goes to the systemd journal. When a program is ...
telcoM's user avatar
  • 101k
1 vote

How to make sure a service, that may or may not exist/be loaded, is stoped?

systemctl --user is-active will return 2 if not active, 4 if non existent. Only way to not get an error is if it is actually running. That's fine: all those values imply that the service is not ...
u1686_grawity's user avatar
1 vote

Execute a script when powering off, but not when rebooting (using systemd)

I tried to start a script, when powering off and it worked. Made a service unit called myservice.service [Unit] Description=Run mycommand at shutdown DefaultDependencies=no Before=poweroff.target [...
Schmaehgrunza's user avatar
1 vote

Battery notification script works on its own but does not work when triggered by a systemd-service

The D-Bus session bus works similarly to the X server – there can be more than one per system, so clients must know the socket address to connect to, i.e. they need DBUS_SESSION_BUS_ADDRESS= which is ...
u1686_grawity's user avatar
1 vote

Can I make a script that Reboots and continues after?

I don't think it'll work for your particular case but the approach can be used in similar situations and it's too long for a comment On Linux it could be achieved by enabling hibernation and doing ...
Arkadiusz Drabczyk's user avatar
1 vote

systemctl daemon-reload: show diff between running config and current file

So in kind of a crisis, I spend 4 hours making a python script without dependencies so I can more easily compare running config with usual config for systemctl unit files. Script is not perfect and ...
Kiwy's user avatar
  • 9,764
1 vote
Accepted

systemctl daemon-reload: show diff between running config and current file

Your suspicion is correct: systemctl cat always shows the contents of the relevant unit files as they currently are on disk, not as they are currently in systemd’s view of the system. You can see the ...
Stephen Kitt's user avatar
1 vote

Why do some of the directories in `/run/systemd/` have permissions 600?

If I understand correctly, the purpose of /run/systemd/propagate/* directories is to act as mount points for dynamic bind mounts, for services running in their own mount namespaces. This explains why ...
telcoM's user avatar
  • 101k

Only top scored, non community-wiki answers of a minimum length are eligible