Bug#774430: systemd: service makes as not reloadable

Michael Biebl <[email protected]>
Newsgroups gmane.linux.debian.devel.bugs.general,gmane.linux.debian.ports.mips
Message-ID <[email protected]>
Am 02.01.2015 um 19:11 schrieb Tollef Fog Heen:
	> minkus% sudo systemctl show syslog-ng.service | cat
...
> CanStart=no
> CanStop=no
> CanReload=no
> CanIsolate=no
> StopWhenUnneeded=no
> RefuseManualStart=no
> RefuseManualStop=no
> AllowIsolate=no
> DefaultDependencies=no
> OnFailureJobMode=replace
> IgnoreOnIsolate=no
> IgnoreOnSnapshot=no
> NeedDaemonReload=no
> JobTimeoutUSec=0
> ConditionResult=no
> ConditionTimestamp=ma. 2014-12-22 10:17:04 UTC
> ConditionTimestampMonotonic=14254183
> Transient=no


Something I just noticed: All boolean properties are no, not just CanReload.
And checking on minkus, this seems to happen for other services as well,
like

$ systemctl show ssh.service | grep no$
PermissionsStartOnly=no
RootDirectoryStartOnly=no
RemainAfterExit=no
GuessMainPID=no
CPUAccounting=no
BlockIOAccounting=no
MemoryAccounting=no
CPUSchedulingResetOnFork=no
NonBlocking=no
TTYReset=no
TTYVHangup=no
TTYVTDisallocate=no
SyslogLevelPrefix=no
PrivateTmp=no
PrivateNetwork=no
PrivateDevices=no
ProtectHome=no
ProtectSystem=no
SameProcessGroup=no
IgnoreSIGPIPE=no
NoNewPrivileges=no
SendSIGKILL=no
SendSIGHUP=no
CanStart=no
CanStop=no
CanReload=no
CanIsolate=no
StopWhenUnneeded=no
RefuseManualStart=no
RefuseManualStop=no
AllowIsolate=no
DefaultDependencies=no
IgnoreOnIsolate=no
IgnoreOnSnapshot=no
NeedDaemonReload=no
ConditionResult=no
Transient=no

vs

$ systemctl show ssh.service | grep yes$
<empty>

So, this seems to be an issue which lies deeper.


I wonder if this is arch specific and we have some arch specific
problems when dealing with boolean data.

Other mips64 porterboxes, like eller, show the same behaviour.
Interestingly, the same on a powerpc porterbox (partch).

I've CCed the mips porter mailing list. Maybe they have an idea.


Digging deeper, I wonder whether this is just a presentation issue, i.e.
the output of systemctl show simply being wrong but the internal
representation actually being correct.
When checking systemd-analyze dump, it seems to show the correct values:

$ systemd-analyze dump
→ GuessMainPid: yes

$ systemctl show -p  GuessMainPID syslog-ng.service
GuessMainPID=no

Tollef, can you run
systemctl reload syslog-ng.service
and see if that works?

If so, we probably need to concentrate on "show". Maybe there is some
formatting issue and we cast boolean values wrong when using printf.

Regards,
Michael
-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEECbOsLssWnJBDRcxUauHfDWCPItwFAlhbFRIACgkQauHfDWCP
Itzrjg//dK/kTmAxiHUZs+MO+4Wa/2CtvX77QsMaRXL8jrr35WippvUcCK3Nabby
Plhsb57+SespgSiZ3tWVEcwaPJOe5VySP2XUOuhSWCC9au/vKqYMLD2npolqJDEt
qy+zi5L2sYNueEJ564oxE/en44h0ZDfcSlDk+r/Uw+9QQ+u6HDoOse2FrNopgm3Q
gt7DyjqI6a71Kg1aY+62XuuVw+/p7rMPBnnEr9KGEpLpE4AuqxkQCiMhFWrApLSM
Lq3afAb/LVZ8+R3KIH91C7dVvp8PrKNd/bZA/E6yEAFu46oIkCwE8rX/rdAjb/3G
QiM8Z//GjrEyttwZDXErWqkKaNZOvxR1O3GAHc0dU3IQYJX3ZOVjl+5LGHFacrEj
nxjlwSMDssi6U1Nd2SIUG/u/UH7nWHz/q53NfTvZrQh2kBRlvwHUaGmMmtwZkg0e
9s1u2VnwLiBFWOdt/vwJ/vnPqcq3S+JiRMzimNRw3FoyZAH031ksC6XrsSPT7uwN
iUpZf/hKRQ3xI5ZMcCZfpE0P2FeXwtukKiyt/pZ8E5RbZOISBCtE8p77fR8VHjvo
WAA/aViZNr9ysHCNwdrVM1rqdD6oJ075iPStiT9DWIGqb9lXHWFeHsS2aNJ2pnIp
ln/89csp9KaFkYzvfe63b/cghw1k3FSF9G2kUmPyon+51k/+rik=
=gzPy
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.