[systemd-devel] Unexpecte behavior for timer with OnActiveSec
Hi, We need to switch to a different target after 30 min of starting that target. Switching happens with isolate. So we have a timer with OnActiveSec=30min witch starts a service that calls systemctl isolate other.target This works like a charm... the first time the target is activated. The second time we start that target nothing happens after 30 min. After some manual testing I can conclude that a timer with OnActiveSec set will stay in elapsed state even after the timer has been restarted or stopped and then started. This is not what I expect. Also there seems to be no way to reset it to the waiting/running state except for the following procedure: systemctl daemon-reload systemctl restart timer.timer Is this expected behavior or a bug? Best regards, Hiram van Paassen Power Products, LLC Email Notice This message is intended only for the use of the Addressee and may contain information that is PRIVILEGED and/or CONFIDENTIAL. This email is intended only for the personal and confidential use of the recipient(s) named above. If the reader of this email is not an intended recipient, you have received this email in error and any review, dissemination, distribution or copying is strictly prohibited. If you have received this email in error, please notify the sender immediately by return mail and permanently delete the copy you received. Thank you. ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel
[systemd-devel] Starting different services from same process
Hi, We use systemd to manage some python processes in an embedded environment (imx28 cpu). This works fantastic except for a fairly long startup sequence due to python being slow during the initialization of its standard libraries. We found a possible solution inspired by http://draketo.de/light/english/politics-and-free-software/reducing-python-startup-time which basically means taking the startup overhead only once instead of x times by starting a minimal python process which forks itself into different programs. However, I fail to see how this would play nice with systemd and its use of cgroups. We currently use type=dbus services so I expect that starting is not really the problem but it would be annoying if systemd cannot stop one service without killing them all since they are in the same cgroup Is it possible to start multiple different services from one process? With kind regards, Hiram van Paassen Power Products, LLC Email Notice This message is intended only for the use of the Addressee and may contain information that is PRIVILEGED and/or CONFIDENTIAL. This email is intended only for the personal and confidential use of the recipient(s) named above. If the reader of this email is not an intended recipient, you have received this email in error and any review, dissemination, distribution or copying is strictly prohibited. If you have received this email in error, please notify the sender immediately by return mail and permanently delete the copy you received. Thank you. ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel
Re: [systemd-devel] Offline systemd unit file installer
Van: Koen Kooi [k...@dominion.thruhere.net] Verzonden: maandag 11 augustus 2014 13:19 Op 11 aug. 2014, om 12:47 heeft Lennart Poettering lenn...@poettering.net het volgende geschreven: On Sat, 09.08.14 06:44, Paassen, Hiram van (hiram.van.paas...@mastervolt.com) wrote: Am I correct in thinking this only works on systemd enabled host systems or if you cross-compile for the same architecture? So you can use the just compiled version of systemctl? Well, what do you expect? I mean, you want to run the tool offline, so you need to be able to run it on the machine you want to run it offline on... Neither of which is the case for us... Am I expected to compile systemd twice in that case, one time as part of the host 'toolchain' and a second for the actual target? I was rather hoping for something portable like a shell or python script. systemd is written in C. Sorry. Note that there's no need to the systemctl version to be in sync of the image you are putting together and the OS you build it on. The code in systemctl has been stable since quite a while now. Most distributions should include it, unless you run Slackware or so. But systemd upstream is really not the place to work around your weird choice of distro to build systemd images from... I am waiting for the first version of Ubuntu with systemd but until that day I will have to cope with the current situation. I can probably install systemdctl on Ubuntu, but that also means more setup work for my less experienced colleagues. I'd rather keep the workstations as vanilla as possible. That said, systemctl enable just creates a couple of symlinks in /etc/systemd/system, you can easily do the equivalent in a handwritten shell script. Sure, that is not really a problem. But before spending to much work on a home made solution I assumed (correctly) other people must face the same issues. This is what we did for openembedded: https://github.com/openembedded/oe-core/blob/master/meta/recipes-core/systemd/systemd-systemctl/systemctl regards, Koen Thanks this is very helpful. With kind regards, Hiram Power Products, LLC Email Notice This message is intended only for the use of the Addressee and may contain information that is PRIVILEGED and/or CONFIDENTIAL. This email is intended only for the personal and confidential use of the recipient(s) named above. If the reader of this email is not an intended recipient, you have received this email in error and any review, dissemination, distribution or copying is strictly prohibited. If you have received this email in error, please notify the sender immediately by return mail and permanently delete the copy you received. Thank you. ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel
Re: [systemd-devel] Offline systemd unit file installer
Van: Andrey Borzenkov [arvidj...@gmail.com] Verzonden: zaterdag 9 augustus 2014 5:48 В Fri, 8 Aug 2014 19:57:12 + Paassen, Hiram van hiram.van.paas...@mastervolt.com пишет: Hey, Is there a off-line variant for systemctl enable/disable? We use buildroot to generate/cross-compile a file-system and make extensive use of systemd. Right now we use installer scripts to create the symlinks needed to enable a unit. This means changes in unit files also need changes in the corresponding install scripts. Is there a tool or something in the systemd source that can parse unit files and install the required symlinks in the appointed directory? Something that can run on the host system? systemctl --root=/path/to/root enable ... What would be the best way to do such a thing if there is no tool? Best regards, Hiram Am I correct in thinking this only works on systemd enabled host systems or if you cross-compile for the same architecture? So you can use the just compiled version of systemctl? Neither of which is the case for us... Am I expected to compile systemd twice in that case, one time as part of the host 'toolchain' and a second for the actual target? I was rather hoping for something portable like a shell or python script. Best regards, Hiram Power Products, LLC Email Notice This message is intended only for the use of the Addressee and may contain information that is PRIVILEGED and/or CONFIDENTIAL. This email is intended only for the personal and confidential use of the recipient(s) named above. If the reader of this email is not an intended recipient, you have received this email in error and any review, dissemination, distribution or copying is strictly prohibited. If you have received this email in error, please notify the sender immediately by return mail and permanently delete the copy you received. Thank you. ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel
[systemd-devel] Offline systemd unit file installer
Hey, Is there a off-line variant for systemctl enable/disable? We use buildroot to generate/cross-compile a file-system and make extensive use of systemd. Right now we use installer scripts to create the symlinks needed to enable a unit. This means changes in unit files also need changes in the corresponding install scripts. Is there a tool or something in the systemd source that can parse unit files and install the required symlinks in the appointed directory? Something that can run on the host system? What would be the best way to do such a thing if there is no tool? Best regards, Hiram Power Products, LLC Email Notice This message is intended only for the use of the Addressee and may contain information that is PRIVILEGED and/or CONFIDENTIAL. This email is intended only for the personal and confidential use of the recipient(s) named above. If the reader of this email is not an intended recipient, you have received this email in error and any review, dissemination, distribution or copying is strictly prohibited. If you have received this email in error, please notify the sender immediately by return mail and permanently delete the copy you received. Thank you. ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel