[systemd-devel] SysVInit service migration to systemd
David Timothy Strauss
david at davidstrauss.net
Fri Jun 26 14:54:06 PDT 2015
On Fri, Jun 26, 2015 at 7:00 AM Mantas Mikulėnas <grawity at gmail.com> wrote:
> On Fri, Jun 26, 2015 at 4:15 PM, Lesley Kimmel <ljkimmel99 at hotmail.com>
> wrote:
>
>> Hi all;
>>
>> I've been working with RHEL5/6 for the past several years and have
>> developed many init scripts/services which generally use lock files and PID
>> files to allow for tracking of the service status. We are moving to RHEL7
>> (systemd) in the near future and I am looking for instruction or tutorials
>> on how to effectively migrate these scripts to work with systemd.
>>
>> I found https://wiki.archlinux.org/index.php/Systemd#Service_types which
>> seems somewhat promising but it is fairly high-level. It looks like I may
>> be able to use the 'forking' type with the 'pidfile' parameter to somewhat
>> mimic what the scripts to today. However, I have a couple of questions:
>>
>
> Usually systemd detects the main process even without PIDFile, using
> cgroups to keep track.
>
Explicitly setting the PIDFIle is always the superior option, though. It
removes ambiguity, ensures more accurate service startup completion
detection, and (usually) ensures that systemd is definitely sending signals
to the right PID for modes like "mixed."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20150626/e7cd0ff7/attachment.html>
More information about the systemd-devel
mailing list