Re: [PATCH] daemons: write pid file even when told not to daemonize

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Aug 29, 2014, Loic Dachary <loic@xxxxxxxxxxx> wrote:

> After a quick glance at the systemd man page http://www.freedesktop.org/software/systemd/man/systemd.service.html#Options it seems possible to do something like

>     https://github.com/dachary/ceph/compare/wip-systemd?expand=1

Yeah, it sure is possible in systemd to start and track daemons that
don't have a “run in foreground” option, but it's not as efficient.

> Alternatively, shouldn't systemctl kill ceph-osd@10.service be the canonical way of killing a process spawned by systemd ?

If you know what number to use after @, I guess it would.  I don't think
we're talking about the same version of ceph, when it comes to systemd
config files.  Your patch doesn't modify any file present on my system
(still running 0.80.5)

> If both are impractical or frowned upon for some reason, it looks like
> your patch is the only way to go, indeed.

It's certainly not the only way to go, but silently dropping a command
line option sounds like a bug to me.  Of course the patch I proposed
isn't the only way to go about that...

-- 
Alexandre Oliva, freedom fighter    http://FSFLA.org/~lxoliva/
You must be the change you wish to see in the world. -- Gandhi
Be Free! -- http://FSFLA.org/   FSF Latin America board member
Free Software Evangelist|Red Hat Brasil GNU Toolchain Engineer
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux