-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
systemctl start not working when ReadWriteDirectories is a symlink #567
Labels
Comments
/cc @lucab @alepuccetti |
Hi @alban,
i'm really sorry but i'm afraid i can not provide further infos since
i no longer own that ARM system (it was almost 1 year ago).
Thank you anyways, hope this report may still be useful at some point.
|
Same issue here on Debian Testing with systemd 230-5.
Another workaround is changing the |
This is going to be fixed by #4018. |
This was fixed by #4018 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This bug has been reported on debian bts first:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=792187
I copy/paste relevant infos:
Package: systemd
Version: 221-1
Severity: normal
Dear Maintainer,
I installed tor (The onion router) the other day and when i started it
(either via /usr/sbin/service or systemctl) i went through this:
$ sudo systemctl start tor.service
$ systemctl status tor.service
$ sudo journalctl -xe
At first i thought it was a kernel issue (beware also that my kernel
is a chrome os kernel, not the one shipped by Debian, if that
matters). Anyways running the commands in the tor unit file by hand,
one by one in a terminal, leads to a correct execution. The same
renaming/removing the tor unit file and starting the service using the
init file in /etc/init.d.
After a quick jump on the #tor IRC channel we concluded that this may
be an issue on the systemd side, and after reading something around
the web we tried to tweak the Hardening section of the unit file. And
indeed we found that ReadWriteDirectories is set to /var/run which on
my system is a link to /run. Changing ReadWriteDirectories to /run and
running 'systemctl daemon-reload' solved the issue and now the service
is starting fine.
Let me know if more infos are needed.
Thanks.
-- Package-specific info:
-- System Information:
Debian Release: stretch/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: armhf (armv7l)
Kernel: Linux 3.8.11 (SMP w/2 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages systemd depends on:
ii adduser 3.113+nmu3
ii libacl1 2.2.52-2
ii libapparmor1 2.9.2-3
ii libaudit1 1:2.4.2-1
ii libblkid1 2.26.2-6
ii libc6 2.19-18
ii libcap2 1:2.24-9
ii libcap2-bin 1:2.24-9
ii libcryptsetup4 2:1.6.6-5
ii libgcc1 1:5.1.1-12
ii libgcrypt20 1.6.3-2
ii libkmod2 20-1
ii liblzma5 5.1.1alpha+20120614-2.1
ii libmount1 2.26.2-6
ii libpam0g 1.1.8-3.1
ii libseccomp2 2.2.1-2
ii libselinux1 2.3-2+b1
ii libsystemd0 221-1
ii mount 2.26.2-6
ii sysv-rc 2.88dsf-59.2
ii udev 221-1
ii util-linux 2.26.2-6
Versions of packages systemd recommends:
ii dbus 1.8.18-1
ii libpam-systemd 221-1
Versions of packages systemd suggests:
pn systemd-ui
-- Configuration Files:
/etc/systemd/logind.conf changed [not included]
-- no debconf information
This is the unit file included in the tor package:
The text was updated successfully, but these errors were encountered: