]> git.proxmox.com Git - mirror_frr.git/commit - debianpkg/control
debian: Add Systemd integration to control files
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 10 Feb 2016 12:30:56 +0000 (07:30 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 10 Feb 2016 20:11:15 +0000 (15:11 -0500)
commit858aa29c6862ed2390baee53b6fc9f54e65246e2
treeb529298d640e0f6fe60ae102abf78d20cd447c40
parent66dd6fdbdd6fbe578314c5e2760086b0b7645e44
debian: Add Systemd integration to control files

Ticket:
Reviewed By: inprogress
Testing Done: minimal.  Built, installed, started a few services.

This is in progress testing.  quagga.service tries to start and stop
all the routing daemons.  There is no check for whether they are enabled
via /etc/quagga/daemons (yet).

As installed, nothing is enabled (won't start on system boot or install).

The -A 127.0.0.1 is now in /etc/default/quagga, and picked up from there
by all routing daemons.

MAX_FDS is in all the service files for now as LimitNOFILE.  Users who
need to modified the number of fd's will use e.g.
the file /etc/systemd/system/bgpd.service.d/maxfds.conf to override
bgpd.service contents
    [Service]
    LimitNOFILE=2048

MAX_INSTANCES isn't implemented yet.

reload isn't implemented yet (it should be possible via ExecReload
in the services, just not done yet).

The init.d file is removed.

All of the daemons are started without the -d/--daemonize option, and
use Type=simple rather than forking in the services file, to use the
systemd daemonizing.

All the daemons were set to have a 1m start time, and restart up to 3
times in 3 minutes, and for now, are only restart on-abnormal, not always
(we'll likely want the latter, but testing is easier with abnormal).

Also use tmpfiles.d to create /run/quagga

For now, we leave dh_installinit, even though it creates unneeded
update-rc.d calls, and causes lintian complaints about init.d files
that aren't present, so that it installs files like etc/default/quagga.
It also runs the tmpfiles.d commands for us, so we need to add those to
postinst if we dummy it out to fix the update-rc.d lines being added
(and lintian complaints).

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
15 files changed:
debian/babeld.service [new file with mode: 0644]
debian/bgpd.service [new file with mode: 0644]
debian/control
debian/isisd.service [new file with mode: 0644]
debian/ospf6d.service [new file with mode: 0644]
debian/ospfd.service [new file with mode: 0644]
debian/quagga.conf [new file with mode: 0644]
debian/quagga.default
debian/quagga.init.d [deleted file]
debian/quagga.install
debian/quagga.service [new file with mode: 0644]
debian/ripd.service [new file with mode: 0644]
debian/ripngd.service [new file with mode: 0644]
debian/rules
debian/zebra.service [new file with mode: 0644]