Re: systemd autocompletion does not work

2017-07-28 Thread Henrique de Moraes Holschuh
On Fri, 28 Jul 2017, Michael Biebl wrote:
> Am 28.07.2017 um 06:14 schrieb Kamil Jońca:
> > /etc/dbus-1/system.d/:  
> >   
> > -rw-r--r-- 1 root root 3947 Apr 29  2014 org.freedesktop.systemd-shim.conf
> 
> Purge the systemd-shim package. This file from systemd-shim is breaking
> systemd.

Hmm, we lack a way to fix this kind of issue cleanly and easily in
Debian :-(

There isn't a "conflicts-like" package relation that forbids even
conffiles from existing.

The cleaner alternative I know of is to switch from conffile to config
file management (using ucf) in systemd-shim, so that the systemd-shim
package could *stash* org.freedesktop.systemd-shim.conf away on remove,
and preserve it if reinstalled...

-- 
  Henrique Holschuh



Re: systemd autocompletion does not work

2017-07-28 Thread Kamil Jońca
Michael Biebl  writes:

> Am 28.07.2017 um 06:14 schrieb Kamil Jońca:
>
>> /etc/dbus-1/system.d/:   
>>  
>> -rw-r--r-- 1 root root 3947 Apr 29  2014 org.freedesktop.systemd-shim.conf
>
> Purge the systemd-shim package. This file from systemd-shim is breaking
> systemd.
>
Touche. Thank you.

KJ
-- 
http://stopstopnop.pl/stop_stopnop.pl_o_nas.html
Regardless of whether a mission expands or contracts, administrative
overhead continues to grow at a steady rate.



Re: systemd autocompletion does not work

2017-07-28 Thread Michael Biebl
Am 28.07.2017 um 06:14 schrieb Kamil Jońca:

> /etc/dbus-1/system.d/:
> 
> -rw-r--r-- 1 root root 3947 Apr 29  2014 org.freedesktop.systemd-shim.conf

Purge the systemd-shim package. This file from systemd-shim is breaking
systemd.



signature.asc
Description: OpenPGP digital signature


Re: systemd autocompletion does not work

2017-07-27 Thread Kamil Jońca
Michael Biebl  writes:

> Am 27.07.2017 um 19:09 schrieb Kamil Jońca:
>> 
>> 1. Box with debian sid, updated frequently
>> 2. Recently I realized that completion of systemd units does not work,
>> ie.
>> $sudo systemd restart  gives me "@" sign only.
>> I noticed that, at the moment of pressing tab I got in /var/log/auth.log
>> --8<---cut here---start->8---
>> 2017-07-27T19:01:37.228534+02:00 alfa dbus[685]: [system] Rejected
>> send message, 4 matched rules; type="method_call", sender=":1.507"
>> (uid=1000 pid=10335 comm="systemctl --full --no-legend --no-pager
>> list-unit-") interface="org.freedesktop.systemd1.Manager"
>> member="ListUnitFilesByPatterns" error name="(unset)"
>> requested_reply="0" destination="org.freedesktop.systemd1" (uid=0
>> pid=1 comm="/sbin/init ")
>
> Can you provide the systemd and dbus version and the output of
> ls -la /etc/dbus-1/system.d/ /usr/share/dbus-1/system.d/

$dpkg -l systemd dbus
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture   
 Description
+++--===-===-=
ii  dbus 1.10.20-1   amd64  
 simple interprocess messaging system (daemon and utilities)
ii  systemd  234-2   amd64  
 system and service manager

$ls -la /etc/dbus-1/system.d/ /usr/share/dbus-1/system.d/
/etc/dbus-1/system.d/:  
  
total 36
drwxr-xr-x 2 root root 4096 Jul 27 19:11 .
drwxr-xr-x 4 root root 4096 Jul  2 07:19 ..
-rw-r--r-- 1 root root 1144 Dec  9  2014 avahi-dbus.conf
-rw-r--r-- 1 root root 1630 Aug 18  2015 bluetooth.conf
-rw-r--r-- 1 root root 1569 Jun  5  2014 org.freedesktop.ColorManager.conf
-rw-r--r-- 1 root root  632 May 22  2014 org.freedesktop.PolicyKit1.conf
-rw-r--r-- 1 root root 1075 Nov 16  2014 org.freedesktop.RealtimeKit1.conf
-rw-r--r-- 1 root root 3947 Apr 29  2014 org.freedesktop.systemd-shim.conf
-rw-r--r-- 1 root root 1084 Apr 27  2015 pulseaudio-system.conf

/usr/share/dbus-1/system.d/:
total 60
drwxr-xr-x 2 root root  4096 Jul 22 11:17 .
drwxr-xr-x 6 root root  4096 Jul  2 07:18 ..
-rw-r--r-- 1 root root   947 Jul 12 16:01 org.freedesktop.hostname1.conf
-rw-r--r-- 1 root root   937 Jul 12 16:01 org.freedesktop.locale1.conf
-rw-r--r-- 1 root root 12499 Jul 12 16:01 org.freedesktop.login1.conf
-rw-r--r-- 1 root root  1604 Jul 12 16:01 org.freedesktop.network1.conf
-rw-r--r-- 1 root root   953 Jul 12 16:01 org.freedesktop.resolve1.conf
-rw-r--r-- 1 root root 12654 Jul 12 16:01 org.freedesktop.systemd1.conf
-rw-r--r-- 1 root root   947 Jul 12 16:01 org.freedesktop.timedate1.conf


KJ
-- 
http://wolnelektury.pl/wesprzyj/teraz/
It is the wise bird who builds his nest in a tree.



Re: systemd autocompletion does not work

2017-07-27 Thread Michael Biebl
Am 27.07.2017 um 19:09 schrieb Kamil Jońca:
> 
> 1. Box with debian sid, updated frequently
> 2. Recently I realized that completion of systemd units does not work,
> ie.
> $sudo systemd restart  gives me "@" sign only.
> I noticed that, at the moment of pressing tab I got in /var/log/auth.log
> --8<---cut here---start->8---
> 2017-07-27T19:01:37.228534+02:00 alfa dbus[685]: [system] Rejected send 
> message, 4 matched rules; type="method_call", sender=":1.507" (uid=1000 
> pid=10335 comm="systemctl --full --no-legend --no-pager list-unit-") 
> interface="org.freedesktop.systemd1.Manager" member="ListUnitFilesByPatterns" 
> error name="(unset)" requested_reply="0" 
> destination="org.freedesktop.systemd1" (uid=0 pid=1 comm="/sbin/init ")

Can you provide the systemd and dbus version and the output of
ls -la /etc/dbus-1/system.d/ /usr/share/dbus-1/system.d/


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?



signature.asc
Description: OpenPGP digital signature


Re: systemd autocompletion does not work

2017-07-27 Thread Kamil Jońca
Michael Biebl  writes:
[...]
>
> Are you sure you are using systemd as PID 1? Is systemd-sysv installed
> and have you rebooted since installing that package?
>
hm.
$ps ax

shows [..stripped..]

1 ?Ss 0:33 /sbin/init

then

$ll /sbin/init
lrwxrwxrwx 1 root root 20 Jul 20 15:13 /sbin/init -> /lib/systemd/systemd

$dpkg -l systemd-sysv
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture   
 Description
+++--===-===-=
ii  systemd-sysv 234-2   amd64  
 system and service manager - SysV links

Yes, computer was restarted.
KJ


-- 
http://wolnelektury.pl/wesprzyj/teraz/
If it's worth doing, it's worth doing for money.



Re: systemd autocompletion does not work

2017-07-27 Thread Michael Biebl
Am 27.07.2017 um 22:20 schrieb Kamil Jońca:
> Michael Biebl  writes:
> 
>> Am 27.07.2017 um 19:09 schrieb Kamil Jońca:
>>>
>>> 1. Box with debian sid, updated frequently
>>> 2. Recently I realized that completion of systemd units does not work,
>>> ie.
>>> $sudo systemd restart  gives me "@" sign only.
>>
>> ...
>>
>>> What am I missing?
>>
>> The tool is called systemctl, not systemd.
> 
> You're right, my typo.
> But what am I missing?
> KJ
> 

Are you sure you are using systemd as PID 1? Is systemd-sysv installed
and have you rebooted since installing that package?



signature.asc
Description: OpenPGP digital signature


Re: systemd autocompletion does not work

2017-07-27 Thread Kamil Jońca
Michael Biebl  writes:

> Am 27.07.2017 um 19:09 schrieb Kamil Jońca:
>> 
>> 1. Box with debian sid, updated frequently
>> 2. Recently I realized that completion of systemd units does not work,
>> ie.
>> $sudo systemd restart  gives me "@" sign only.
>
> ...
>
>> What am I missing?
>
> The tool is called systemctl, not systemd.

You're right, my typo.
But what am I missing?
KJ

-- 
http://wolnelektury.pl/wesprzyj/teraz/
Beware the one behind you.



Re: systemd autocompletion does not work

2017-07-27 Thread Michael Biebl
Am 27.07.2017 um 19:09 schrieb Kamil Jońca:
> 
> 1. Box with debian sid, updated frequently
> 2. Recently I realized that completion of systemd units does not work,
> ie.
> $sudo systemd restart  gives me "@" sign only.

...

> What am I missing?

The tool is called systemctl, not systemd.




signature.asc
Description: OpenPGP digital signature


systemd autocompletion does not work

2017-07-27 Thread Kamil Jońca

1. Box with debian sid, updated frequently
2. Recently I realized that completion of systemd units does not work,
ie.
$sudo systemd restart  gives me "@" sign only.
I noticed that, at the moment of pressing tab I got in /var/log/auth.log
--8<---cut here---start->8---
2017-07-27T19:01:37.228534+02:00 alfa dbus[685]: [system] Rejected send 
message, 4 matched rules; type="method_call", sender=":1.507" (uid=1000 
pid=10335 comm="systemctl --full --no-legend --no-pager list-unit-") 
interface="org.freedesktop.systemd1.Manager" member="ListUnitFilesByPatterns" 
error name="(unset)" requested_reply="0" destination="org.freedesktop.systemd1" 
(uid=0 pid=1 comm="/sbin/init ")
2017-07-27T19:01:37.235178+02:00 alfa dbus[685]: [system] Rejected send 
message, 4 matched rules; type="method_call", sender=":1.508" (uid=1000 
pid=10337 comm="systemctl --full --no-legend --no-pager list-units") 
interface="org.freedesktop.systemd1.Manager" member="ListUnitsByPatterns" error 
name="(unset)" requested_reply="0" destination="org.freedesktop.systemd1" 
(uid=0 pid=1 comm="/sbin/init ")
2017-07-27T19:01:37.235466+02:00 alfa dbus[685]: [system] Rejected send 
message, 4 matched rules; type="method_call", sender=":1.508" (uid=1000 
pid=10337 comm="systemctl --full --no-legend --no-pager list-units") 
interface="org.freedesktop.systemd1.Manager" member="ListUnitsFiltered" error 
name="(unset)" requested_reply="0" destination="org.freedesktop.systemd1" 
(uid=0 pid=1 comm="/sbin/init ")
2017-07-27T19:01:37.253102+02:00 alfa dbus[685]: [system] Rejected send 
message, 4 matched rules; type="method_call", sender=":1.510" (uid=1000 
pid=10342 comm="systemctl --full --no-legend --no-pager list-unit-") 
interface="org.freedesktop.systemd1.Manager" member="ListUnitFilesByPatterns" 
error name="(unset)" requested_reply="0" destination="org.freedesktop.systemd1" 
(uid=0 pid=1 comm="/sbin/init ")
--8<---cut here---end--->8---

What am I missing?
KJ


-- 
http://wolnelektury.pl/wesprzyj/teraz/
I have ways of making money that you know nothing of.
-- John D. Rockefeller