<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Thanks for the information. I've seen that blog before. Unfortunately, it only describes a starting a service that already has a good level of integration with some of the underlying infrastructure of systemd (e.g. dbus). Let me be a little more specific about what I'm trying to accomplish and see if anyone has any thoughts on how systemd could help (or impede me).<br><br>I have a collection of servers hosting many processes such as Apache HTTPD, a database, and Java application servers. Using init these servers would: a) need to be started in a specific order and b) take a long time to start. To improve both of these scenarios I created a Python service which took an XML configuration file describing the dependencies of the various components. The Python service is started by init and forks so as to not stop the boot process. The forked process then does some basic dependency checking (including remote tests, mostly telnet or pings) before starting local services using init scripts that are not configured to be started by init.<br><br>I'm wondering, with systemd, if this Python "control" daemon would be required at all. Does systemd have the ability to check the status of remote servers? I get the impression that dbus may have this type of functionality but I've never really dug into it before. <br><br>Lesley Kimmel, RHCE<br>Unix/Linux Systems Engineer<br><br><div>> Subject: Re: [systemd-devel] SysVInit service migration to systemd<br>> From: lnykryn@redhat.com<br>> To: ljkimmel99@hotmail.com<br>> CC: systemd-devel@lists.freedesktop.org<br>> Date: Fri, 26 Jun 2015 15:58:35 +0200<br>> <br>> Lesley Kimmel píše v Pá 26. 06. 2015 v 08:15 -0500:<br>> > Hi all;<br>> > <br>> > I've been working with RHEL5/6 for the past several years and have<br>> > developed many init scripts/services which generally use lock files<br>> > and PID files to allow for tracking of the service status. We are<br>> > moving to RHEL7 (systemd) in the near future and I am looking for<br>> > instruction or tutorials on how to effectively migrate these scripts<br>> > to work with systemd. <br>> <br>> http://0pointer.de/blog/projects/systemd-for-admins-3.html<br>> <br>> > <br>> > I found https://wiki.archlinux.org/index.php/Systemd#Service_types<br>> > which seems somewhat promising but it is fairly high-level. It looks<br>> > like I may be able to use the 'forking' type with the 'pidfile'<br>> > parameter to somewhat mimic what the scripts to today. However, I have<br>> > a couple of questions:<br>> > <br>> > -How does systemd track whether it should be stopping a service at<br>> > shutdown (analogous to the /var/lock/subsys files in SysVInit)?<br>> <br>> Systemd tracks the services using cgroups, so it knows that the service<br>> is running and needs to be stopped.<br>> <br>> > -Are there merits to using the notify or dbus types? If so does anyone<br>> > know of a tutorial I could use to get to that point? (FYI, I'm not a<br>> > developer but I learn complicated things quickly).<br>> > -If the current service logs to a custom, dedicated log is there a way<br>> > to get systemd to provide the same type of output that it does for the<br>> > built-in system services or must I make some modifications to<br>> > integrate with journald?<br>> <br>> Look at the Administrators Blog Series and Developers Series<br>> https://wiki.freedesktop.org/www/Software/systemd/<br>> <br>> > <br>> > Thanks ahead of time,<br>> > Lesley Kimmel, RHCE<br>> > Linux/Unix Systems Engineer<br>> > <br>> > _______________________________________________<br>> > systemd-devel mailing list<br>> > systemd-devel@lists.freedesktop.org<br>> > http://lists.freedesktop.org/mailman/listinfo/systemd-devel<br>> <br>> Regards<br>> Lukas<br>> <br>> <br></div> </div></body>
</html>