13
votes
"Permission denied" error while trying to create and run a systemd service
Rocky Linux is a RHEL derivative, and RHEL has SELinux enabled by default.
In modern RHEL releases, SELinux is configured to restrict systemd to execute system services only when the executables have ...
7
votes
Accepted
How to automatically reload daemons after `/etc/fstab` was changed?
What are the consequences if this is not done?
systemd won’t be aware of the changes; whether that’s important or not depends on the nature of the changes. systemd provides a number of generators ...
5
votes
How to automatically reload daemons after `/etc/fstab` was changed?
What are the consequences if this is not done?
That depends a bit on what's in there. But, for example, if you added (or changed) an entry that would lead to a directory being automatically mounted ...
4
votes
Set uid bit not recognised
Have systemd run the program directly, as the desired user.
Replace with the correct full path to the program. Example changed directives:
User=root
ExecStart=/usr/local/bin/fdil
Defining the user in ...
3
votes
"Permission denied" error while trying to create and run a systemd service
Failed to locate executable /home/vagrant/helloworld.sh: Permission denied
Sounds like vagrant does not have execute (search) permission on /home or /home/vagrant. Both seems strange for ordinary ...
2
votes
Mutual exclusion among a group of services
What about more complex setups?
As correctly noted by @larsks (see here) Systemd provides no built-in solution for this. Utilising flock is the correct approach. Wrapping ExecStart commands into /usr/...
2
votes
Accepted
How to install systemd-resolved on centos7 and use systemd-resolve
Unfortunately, in CentOS 7, the version of systemd is 219, which does not include a management binary like resolvectl to perform the action you want.
From what I can tell, this binary was only ...
1
vote
Set uid bit not recognised
Several things in Linux can prevent a SUID flag from being applied. Obviously something is different between these boots so my suggestion is to check the situation and compare both cases:
mount ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
systemd × 4824linux × 636
services × 429
debian × 427
ubuntu × 301
arch-linux × 232
centos × 196
systemd-journald × 180
systemctl × 172
boot × 159
systemd-unit × 143
networking × 134
fedora × 130
systemd-timer × 124
udev × 120
mount × 109
systemd-networkd × 102
logs × 101
bash × 100
rhel × 100
sysvinit × 97
startup × 95
shutdown × 91
d-bus × 89
cgroups × 87