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. Yo

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

2011-09-27 Thread Lennart Poettering
On Tue, 27.09.11 18:21, Stefan G. Weichinger ([email protected]) wrote: > > Am 27.09.2011 16:19, schrieb Lennart Poettering: > > > Also see this blog story I posted yesterday with a longer > > explanation: > > > > http://0pointer.de/blog/projects/inetd.html > > > > (Sorry if that loads very slow

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

2011-09-27 Thread Stefan G. Weichinger
Am 27.09.2011 16:19, schrieb Lennart Poettering: > Also see this blog story I posted yesterday with a longer > explanation: > > http://0pointer.de/blog/projects/inetd.html > > (Sorry if that loads very slowly only. The server is currently under > pressure due to the PA 1.0 release) Thanks for

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

2011-09-27 Thread Lennart Poettering
On Tue, 27.09.11 10:01, Stefan G. Weichinger ([email protected]) wrote: > > 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

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-26 Thread Lennart Poettering
On Wed, 14.09.11 22:31, Stefan G. Weichinger ([email protected]) 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] > De

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-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] WantedBy=sock

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

2011-09-15 Thread Stefan G. Weichinger
Am 15.09.2011 10:47, schrieb Michael Olbrich: > On Thu, Sep 15, 2011 at 10:15:05AM +0200, Stefan G. Weichinger wrote: >> Am 15.09.2011 08:49, schrieb Michael Olbrich: >>> On Wed, Sep 14, 2011 at 11:49:30PM +0200, Stefan G. Weichinger wrote: >>> Are the sshd.socket/[email protected] from >>> http://0poi

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

2011-09-15 Thread Michael Olbrich
On Thu, Sep 15, 2011 at 10:15:05AM +0200, Stefan G. Weichinger wrote: > Am 15.09.2011 08:49, schrieb Michael Olbrich: > > On Wed, Sep 14, 2011 at 11:49:30PM +0200, Stefan G. Weichinger wrote: > > Are the sshd.socket/[email protected] from > > http://0pointer.de/public/systemd-units/ working? If not, th

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: https://bugs.gentoo.org/

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

2011-09-14 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-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/[email protected] S

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

2011-09-14 Thread Mirco Tischler
2011/9/15 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:

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 doe

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 $ /usr/libexec/am

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

2011-09-14 Thread Mirco Tischler
2011/9/14 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 w

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 : > 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 > Us

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

2011-09-14 Thread Mirco Tischler
Here it is 2011/9/10 Mirco Tischler : > 2011/9/8 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.

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 T

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 mailto:[email protected]>> > > 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 i

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 Mirco Tischler
2011/9/14 Stefan G. Weichinger : > Am 2011-09-08 22:39, schrieb 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

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

2011-09-14 Thread Stefan G. Weichinger
Am 2011-09-08 22:39, schrieb 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

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

2011-09-09 Thread Mirco Tischler
2011/9/8 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

[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 distro-specifi