Re: [systemd-devel] inetd-style service with connection logging

2016-06-16 Thread Mantas Mikulėnas
On Fri, Jun 17, 2016 at 5:05 AM, Brian Kroth wrote: > Hi, I'm trying to convert an old school inetd service into a systemd > socket activation. > > More or less what was describe in [1] worked for me. However, the bit I'm > currently missing is connection logging. > > With

Re: [systemd-devel] environment variable questions

2016-06-16 Thread Mantas Mikulėnas
On Fri, Jun 17, 2016 at 6:01 AM, Brian Kroth wrote: > Hi again, related to my inetd conversion example, in my .service unit I > have something like this: > > # nagios-nrpe-server@.service: > [Service] > Environment=NICENESS=0 > EnvironmentFile=-/etc/default/nagios-nrpe-server

Re: [systemd-devel] environment variable questions

2016-06-16 Thread Andrei Borzenkov
17.06.2016 06:01, Brian Kroth пишет: > > It's somewhat unclear from the man pages as to whether or not $VAR > expansion is done outside of the Exec* directives, and I couldn't find a > definitive answer online, but based on the above, I'm guessing it's not, > correct? > Yes. Environment

[systemd-devel] environment variable questions

2016-06-16 Thread Brian Kroth
Hi again, related to my inetd conversion example, in my .service unit I have something like this: # nagios-nrpe-server@.service: [Service] Environment=NICENESS=0 EnvironmentFile=-/etc/default/nagios-nrpe-server ExecStart=/usr/sbin/nrpe -i $DAEMON_OPTIONS Nice=$NICENESS #

[systemd-devel] inetd-style service with connection logging

2016-06-16 Thread Brian Kroth
Hi, I'm trying to convert an old school inetd service into a systemd socket activation. More or less what was describe in [1] worked for me. However, the bit I'm currently missing is connection logging. With the openbsd-inetd package (Debian), one could enable libwrap style logging with

Re: [systemd-devel] how to use per-user systemd --user services / how to replace /etc/xdg/autostart/app.desktop?

2016-06-16 Thread Zbigniew Jędrzejewski-Szmek
On Thu, Jun 16, 2016 at 12:32:24PM +, Patrick Schleizer wrote: > Hi! > > I would like to replace some /etc/xdg/autostart/app.desktop files with > systemd --user services. I believe these are better because then systemd > keywords such as 'After=' etc. can be used. > > Is this a use case

Re: [systemd-devel] how to use per-user systemd --user services / how to replace /etc/xdg/autostart/app.desktop?

2016-06-16 Thread Mantas Mikulėnas
On Thu, Jun 16, 2016 at 3:32 PM, Patrick Schleizer < patrick-mailingli...@whonix.org> wrote: > Hi! > > I would like to replace some /etc/xdg/autostart/app.desktop files with > systemd --user services. I believe these are better because then systemd > keywords such as 'After=' etc. can be used. >

[systemd-devel] how to use per-user systemd --user services / how to replace /etc/xdg/autostart/app.desktop?

2016-06-16 Thread Patrick Schleizer
Hi! I would like to replace some /etc/xdg/autostart/app.desktop files with systemd --user services. I believe these are better because then systemd keywords such as 'After=' etc. can be used. Is this a use case systemd can be used for? Once the user logs in, the systemd --user service should

[systemd-devel] force cryptdisks after e.g. boot.mount

2016-06-16 Thread Bart S.
Hi, I am trying to run a keyscript while mounting a LUKS volume/container, but the systemd that I am using, doesn't support keyscripts. So instead I am trying to let the normal "cryptdisks" run. I mean the SysV cryptdisks. However if it runs early it won't work because it needs the LVM

[systemd-devel] Sync mail with offlineimap via systemd service/timer; getting password from gnome keyring

2016-06-16 Thread Ruben Verweij
Dear all, I am trying to autosync my mail in mutt using offlineimap via a systemd service. I am using these ( https://github.com/OfflineIMAP/offlineimap/tree/master/contrib/systemd) files and have moved them to the `/etc/systemd/user` folder. However, I am storing my password via the