Jochen Schmitt | 15 Feb 2012 21:02
Picon

[CONTRIBUTION]systemd support for inn


Hallo,

as a co-mainainer of the inn package of the Fedora project, I have
develop a unit file to support the systemd init system which I want to
send to you.

The attached file above should be copy to
/lib/systemd/system/innd.services.

Best Regards:

Jochen Schmitt

[Unit]
Description=Inetnet News Daemon
After=syslog.target network.target
ConditionPathExists=/etc/news/inn.conf

[Service]
User=news
PermissionsStartOnly=true
PIDFile=/run/news/innd.pid
Type=forking
ExecStart=/usr/libexec/news/rc.news
ExecStop=/bin/su -m  news -c '/usr/libexec/news/rc.news stop'
KillMode=control-group

[Install]
WantedBy=multi-user.target[s4504kr <at> aleph inn]$
(Continue reading)

Thomas Hochstein | 16 Feb 2012 22:07
Picon

Re: [CONTRIBUTION]systemd support for inn

Jochen Schmitt wrote:

> [Unit]
> Description=Inetnet News Daemon

That would be "Internet News Daemon", I think?

> [Install]
> WantedBy=multi-user.target[s4504kr <at> aleph inn]$

And the prompt "[s4504kr <at> aleph inn]$" should not be copy-pasted. ;)

Regards,
-thh
Julien ÉLIE | 3 Mar 2012 22:08
Favicon

Re: [CONTRIBUTION]systemd support for inn

Hi Jochen,

> as a co-mainainer of the inn package of the Fedora project, I have
> develop a unit file to support the systemd init system which I want to
> send to you.
>
> The attached file above should be copy to
> /lib/systemd/system/innd.services.

INN currently does not install init files.
We could document your suggested innd.services file in INSTALL, the same 
way it is done for the following init.d script ?
     http://inn.eyrie.org/trac/browser/trunk/contrib/sample.init.script

It would then be available in contrib/sample.init.services (with the 
fixes Thomas provided).
Would it suit you?  You could then just copy it to the place you want 
during the installation of the inn package for Fedora.

--

-- 
Julien ÉLIE

« Dans un mois, dans un an, comment souffrirons-nous ? » (Jean
   Racine)
Julien ÉLIE | 29 May 2012 20:01
Favicon

Re: [CONTRIBUTION]systemd support for inn

Hi Jochen,

> as a co-mainainer of the inn package of the Fedora project, I have 
> develop a unit file to support the systemd init system which I want
> to send to you.

Now included in INN, starting from 2.5.3:
    http://inn.eyrie.org/trac/browser/branches/2.5/contrib/sample.init.systemd

Thanks!

--

-- 
Julien ÉLIE

« Etna : lave dévalante. »

Gmane