|
Bugzilla – Full Text Bug Listing |
| Summary: | systemd: disable fails to execute | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE 12.2 | Reporter: | Jan Engelhardt <jengelh> |
| Component: | Basesystem | Assignee: | Frederic Crozat <fcrozat> |
| Status: | VERIFIED FIXED | QA Contact: | E-mail List <qa-bugs> |
| Severity: | Minor | ||
| Priority: | P5 - None | CC: | suse |
| Version: | Final | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Found By: | Beta-Customer | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
| Attachments: | dmesg | ||
|
Description
Jan Engelhardt
2013-03-07 18:13:06 UTC
did you try systemctl daemon-reload before issuing systemctl disable ? Could you boot with systemd.log_level=debug systemd.log_target=kmsg and attach dmesg log ? Looking at systemd code, it would be difficult to improve the error message, unfortunately. # wget http://www.teamviewer.com/download/teamviewer_linux.rpm # zypper in --no-r teamviewer_linux.rpm [...] # systemctl disable teamviewerd.service Failed to issue method call: No such file or directory # dmesg [ 124.660761] systemd[1]: Accepted connection on private bus. [ 124.662263] systemd[1]: Got D-Bus request: org.freedesktop.systemd1.Manager.DisableUnitFiles() on /org/freedesktop/systemd1 [ 124.662628] systemd[1]: Looking for unit files in: [ 124.662633] systemd[1]: /etc/systemd/system [ 124.662636] systemd[1]: /usr/lib/systemd/system [ 124.662663] systemd[1]: /lib/systemd/system [ 124.662754] systemd[1]: Looking for SysV init scripts in: [ 124.662758] systemd[1]: /etc/init.d [ 124.662762] systemd[1]: Looking for SysV rcN.d links in: [ 124.662765] systemd[1]: /etc/init.d [ 124.663459] systemd[1]: Got D-Bus request: org.freedesktop.DBus.Local.Disconnected() on /org/freedesktop/DBus/Local # ls -l /etc/systemd/system/teamviewerd.service lrwxrwxrwx 1 root root 50 Mar 12 08:46 /etc/systemd/system/teamviewerd.service -> /opt/teamviewer8/tv_bin/script/teamviewerd.service I need FULL dmesg log. and please attach the offending service file. v-sfac:/etc/systemd/system # find | grep teamv ./teamviewerd.service ./graphical.target.wants/teamviewerd.service v-sfac:/etc/systemd/system # ls -l teamviewerd.service graphical.target.wants/teamviewerd.service lrwxrwxrwx 1 root root 50 Mar 12 08:46 graphical.target.wants/teamviewerd.service -> /opt/teamviewer8/tv_bin/script/teamviewerd.service lrwxrwxrwx 1 root root 50 Mar 12 08:46 teamviewerd.service -> /opt/teamviewer8/tv_bin/script/teamviewerd.service v-sfac:/etc/systemd/system # cat /opt/teamviewer8/tv_bin/script/teamviewerd.service [Unit] Description = TeamViewer remote control daemon Wants = display-manager.service After = NetworkManager-wait-online.service network.target [Service] Type = forking PIDFile = /var/run/teamviewerd.pid ExecStart = /opt/teamviewer8/tv_bin/teamviewerd -d Restart = on-abort StartLimitInterval = 60 StartLimitBurst = 10 [Install] WantedBy = graphical.target v-sfac:/etc/systemd/system # Created attachment 529557 [details]
dmesg
file teamviewerd.service teamviewerd.service: ASCII text, with CRLF line terminators try running dos2unix on /opt/teamviewer8/tv_bin/script/teamviewerd.service Problem persists even when CRLF is exchanged into LF. ok, teamviewer is installing .service in an "unusual" way (I didn't knew it was even possible): systemctl enable /opt/teamviewer8/tv_bin/script/teamviewerd.service which creates the symlink in /etc/systemd/system, in addition to the one in /etc/systemd/system/graphical.target.wants/ But you need to use "systemctl disable /opt/teamviewer8/tv_bin/script/teamviewerd.service" otherwise the symlink resolution code from systemd will ignore symlink in /etc/systemd/system (which caused the "No such file or directory" error). I've opened a bug report upstream https://bugs.freedesktop.org/show_bug.cgi?id=62300 , I don't know if it is wanted or not. Furthermore, after disabling it you have to enable it again before you can start it. Patch fixed upstream. I've backported it for 12.2 ( http://download.opensuse.org/repositories/home:/fcrozat:/branches:/openSUSE:/12.2:/Update/openSUSE_12.2_Update/ ) and 12.3 (http://download.opensuse.org/repositories/home:/fcrozat:/branches:/openSUSE:/12.3:/Update/standard/) and it is already in Factory. Let's request maintenance bugfix update for both 12.2 and 12.3 mr 178807 for 12.2 and #178808 for 12.3 Update started for openSUSE 12.2 (openSUSE:Maintenance:1775) and 12.3 (openSUSE:Maintenance:1776). Thanks for your submission. Update released for openSUSE 12.2 and 12.3. Resolved fixed. openSUSE-RU-2013:1055-1: An update that has four recommended fixes can now be installed. Category: recommended (moderate) Bug References: 793411,796171,804575,808144 CVE References: Sources used: openSUSE 12.2 (src): systemd-44-10.15.1, systemd-gtk-44-10.15.1 openSUSE-RU-2013:1057-1: An update that has four recommended fixes can now be installed. Category: recommended (moderate) Bug References: 808144,808319,809420,820454 CVE References: Sources used: openSUSE 12.3 (src): systemd-195-13.29.1, systemd-mini-195-13.29.1 Excellent. |