[DRE-maint] Bug#812841: systemd checking was not foolproof

Antonio Terceiro terceiro at debian.org
Thu Feb 11 19:24:25 UTC 2016


On Fri, Feb 12, 2016 at 12:12:40AM +0530, Pirate Praveen wrote:
> Control: found -1 gitlab/8.4.0+dfsg-2
> Control: forcemerge -1 814413
> 
> Since I had init=/bin/systemd in my /proc/cmdline, as I moved to systemd
> before it became default, the check in postinst was not correct. I will
> switch to checking in /proc/1/cmdline and upload.

note sure that is correct either. On my system I get

$ cat /proc/1/cmdline ; echo
/sbin/init

I think the correct way to test if the system is currently running
systemd if by checking if "/run/systemd/system" is an existing directory
i.e. `-d "/run/systemd/system"` in shell (that is how
/usr/sbin/update-rc.d does it).

-- 
Antonio Terceiro <terceiro at debian.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-ruby-extras-maintainers/attachments/20160211/b1ec48e6/attachment.sig>


More information about the Pkg-ruby-extras-maintainers mailing list