Re: [systemd-devel] converting a xinetd-service to systemd

2011-09-27 Thread Stefan G. Weichinger
Am 26.09.2011 18:43, schrieb Lennart Poettering: If this is an inetd service you need to specify StandardInput=socket here. That directive makes sure the sockets are passes on fds 0-2 to the spawned process which is how inetd does it too. I am sure I had that option set at some point when

Re: [systemd-devel] converting a xinetd-service to systemd

2011-09-27 Thread Stefan G. Weichinger
Am 27.09.2011 20:01, schrieb Lennart Poettering: There's some borked software around which when it finds getppid() == 1 follows a different code path on init then otherwise, in the ill-fated attempt to detect whether a daemon is started from the old inittab instead of on an init script. You

Re: [systemd-devel] converting a xinetd-service to systemd

2011-09-26 Thread Lennart Poettering
On Wed, 14.09.11 22:31, Stefan G. Weichinger (li...@xunil.at) wrote: Sorry for the delay, but I hope this is useful still: What I have now: # cat amanda.socket [Socket] ListenStream=10080 Accept=true [Install] WantedBy=sockets.target # cat amanda\@.service [Unit]

Re: [systemd-devel] converting a xinetd-service to systemd

2011-09-15 Thread Michael Olbrich
On Wed, Sep 14, 2011 at 11:49:30PM +0200, Stefan G. Weichinger wrote: Am 14.09.2011 23:36, schrieb Mirco Tischler: One more thing to check: if you use a very recent version of systemd (afair v35 and up) try adding StandardInput=socket and StandardOutput=socket to the service file.

Re: [systemd-devel] converting a xinetd-service to systemd

2011-09-15 Thread Stefan G. Weichinger
Am 15.09.2011 08:49, schrieb Michael Olbrich: On Wed, Sep 14, 2011 at 11:49:30PM +0200, Stefan G. Weichinger wrote: nope, systemd-29-r2 here (latest in gentoo-portage) That's rather old. There are issues with udev herer, so the devs still hold back new releases:

Re: [systemd-devel] converting a xinetd-service to systemd

2011-09-15 Thread Stefan G. Weichinger
Got it/something working. amcheck succeeds now, will test an actual backup now. Pls review my current files and tell me if I do something wrong maybe. Went back to Accept=True now and added StandardOutput: # cat amanda.socket [Socket] ListenStream=10080 Accept=True [Install]

Re: [systemd-devel] converting a xinetd-service to systemd

2011-09-15 Thread Stefan G. Weichinger
Am 15.09.2011 12:06, schrieb Stefan G. Weichinger: Got it/something working. amcheck succeeds now, will test an actual backup now. Removed StandardOutput again. Doing backups with amdump fails, the socket fails on the target machine. I do some other work now. Feedback welcome. Stefan

Re: [systemd-devel] converting a xinetd-service to systemd

2011-09-14 Thread Stefan G. Weichinger
Am 2011-09-14 21:28, schrieb Mirco Tischler: Hm. Didn't you get my reply or was it not extensive enough? Didn't get it. Might be related to the problem with policyd-weight in the last days (false positives due to a dead RBL). Please resend, thanks in advance. Stefan

Re: [systemd-devel] converting a xinetd-service to systemd

2011-09-14 Thread Stefan G. Weichinger
Am 2011-09-14 21:43, schrieb Jan Willies: 2011/9/14 Stefan G. Weichinger li...@xunil.at mailto:li...@xunil.at Am 2011-09-14 21 tel:2011-09-14%2021:28, schrieb Mirco Tischler: Hm. Didn't you get my reply or was it not extensive enough? Didn't get it. Might be related to the

Re: [systemd-devel] converting a xinetd-service to systemd

2011-09-14 Thread Stefan G. Weichinger
What I have now: # cat amanda.socket [Socket] ListenStream=10080 Accept=true [Install] WantedBy=sockets.target # cat amanda\@.service [Unit] Description=amandad [Service] ExecStart=-/usr/libexec/amanda/amandad -auth=bsdtcp amdump User=amanda Group=amanda [Install] WantedBy=multi-user.target

Re: [systemd-devel] converting a xinetd-service to systemd

2011-09-14 Thread Mirco Tischler
Here it is 2011/9/10 Mirco Tischler mt...@gmx.de: 2011/9/8 Stefan G. Weichinger li...@xunil.at: Greets, systemd-devs and -users, maybe I ask a FAQ, pls be kind ... I am rather new to systemd and figuring out how to use it w/ gentoo linux. It is available within the

Re: [systemd-devel] converting a xinetd-service to systemd

2011-09-14 Thread Mirco Tischler
2011/9/14 Stefan G. Weichinger li...@xunil.at: What I have now: # cat amanda.socket [Socket] ListenStream=10080 Accept=true [Install] WantedBy=sockets.target # cat amanda\@.service [Unit] Description=amandad [Service] ExecStart=-/usr/libexec/amanda/amandad -auth=bsdtcp amdump

Re: [systemd-devel] converting a xinetd-service to systemd

2011-09-14 Thread Stefan G. Weichinger
Am 14.09.2011 22:58, schrieb Mirco Tischler: Pretty much identical to what I wrote. You can find information about User and Group in systemd.exec. Ah, yes, did now. Minor detail: you don't want the Install section in the service file. systemd wouldn't know what to fill in behind the @.

Re: [systemd-devel] converting a xinetd-service to systemd

2011-09-14 Thread Mirco Tischler
2011/9/14 Stefan G. Weichinger li...@xunil.at: Am 14.09.2011 22:58, schrieb Mirco Tischler: Pretty much identical to what I wrote. You can find information about User and Group in systemd.exec. Ah, yes, did now. Minor detail: you don't want the Install section in the service file. systemd

Re: [systemd-devel] converting a xinetd-service to systemd

2011-09-14 Thread Stefan G. Weichinger
Am 14.09.2011 23:36, schrieb Mirco Tischler: Maybe the Type of the service is wrong? Easy to check: if you execute the command in a shell does amandad background itself? If yes type should be forking, else Type=simple (the default) is fine. Don't know. # su amanda $

Re: [systemd-devel] converting a xinetd-service to systemd

2011-09-14 Thread Stefan G. Weichinger
additional info: # systemctl status amanda.socket amanda.socket Loaded: loaded (/etc/systemd/system/amanda.socket) Active: failed since Thu, 15 Sep 2011 00:04:17 +0200; 19min ago Accepted: 22; Connected: 0 CGroup: name=systemd:/system/amanda.socket What

Re: [systemd-devel] converting a xinetd-service to systemd

2011-09-14 Thread Mirco Tischler
2011/9/15 Stefan G. Weichinger li...@xunil.at: additional info: # systemctl status amanda.socket amanda.socket          Loaded: loaded (/etc/systemd/system/amanda.socket)          Active: failed since Thu, 15 Sep 2011 00:04:17 +0200; 19min ago        Accepted: 22; Connected: 0          

Re: [systemd-devel] converting a xinetd-service to systemd

2011-09-14 Thread Stefan G. Weichinger
Am 15.09.2011 00:35, schrieb Mirco Tischler: Do you actually see any amanda service instances started in the systemctl output? nope. maybe the naming is wrong? I have /etc/systemd/system/amanda.socket and /etc/systemd/system/amanda@.service S

[systemd-devel] converting a xinetd-service to systemd

2011-09-08 Thread Stefan G. Weichinger
Greets, systemd-devs and -users, maybe I ask a FAQ, pls be kind ... I am rather new to systemd and figuring out how to use it w/ gentoo linux. It is available within the gentoo-portage-package-system, yes. Compiles etc. But IMO it still needs some polishing there. Aside from the