Browse Source

Add n2n-ntopng to bind the services lifetimes

pull/60/head
emanuele-f 6 years ago
parent
commit
3bd4e2c335
  1. 1
      packages/debian/configure.in
  2. 16
      packages/etc/systemd/system/edge-ntopng@.service.in
  3. 1
      packages/rpm/configure.in
  4. 1
      packages/rpm/n2n.spec.in

1
packages/debian/configure.in

@ -39,6 +39,7 @@ AC_CONFIG_FILES(debian/control)
AC_CONFIG_FILES(debian/rules)
AC_CONFIG_FILES(../etc/systemd/system/edge.service)
AC_CONFIG_FILES(../etc/systemd/system/edge@.service)
AC_CONFIG_FILES(../etc/systemd/system/edge-ntopng@.service)
AC_CONFIG_FILES(../etc/systemd/system/supernode.service)
AC_CONFIG_FILES(Makefile)
AC_OUTPUT

16
packages/etc/systemd/system/edge-ntopng@.service.in

@ -0,0 +1,16 @@
[Unit]
Description=n2n edge process, on %I
After=network.target syslog.target
Wants=
BindsTo=ntopng.service
[Service]
Type=simple
ExecStartPre=
ExecStart=/usr/sbin/edge /etc/n2n/edge-%i.conf -f
Restart=on-abnormal
RestartSec=5
[Install]
WantedBy=ntopng.service
Alias=

1
packages/rpm/configure.in

@ -38,6 +38,7 @@ AC_SUBST(REVISION)
AC_CONFIG_FILES(n2n.spec)
AC_CONFIG_FILES(../etc/systemd/system/edge.service)
AC_CONFIG_FILES(../etc/systemd/system/edge@.service)
AC_CONFIG_FILES(../etc/systemd/system/edge-ntopng@.service)
AC_CONFIG_FILES(../etc/systemd/system/supernode.service)
AC_CONFIG_FILES(Makefile)
AC_OUTPUT

1
packages/rpm/n2n.spec.in

@ -48,6 +48,7 @@ rm -fr $RPM_BUILD_ROOT
/usr/share/man/man8/edge.8.gz
/usr/lib/systemd/system/edge.service
/usr/lib/systemd/system/edge@.service
/usr/lib/systemd/system/edge-ntopng@.service
/usr/lib/systemd/system/supernode.service
%config(noreplace) /etc/n2n/supernode.conf.sample
%config(noreplace) /etc/n2n/edge.conf.sample

Loading…
Cancel
Save