Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #180634

Re: systemd: How to get suricata started at boot?

From Michael Biebl <biebl@debian.org>
Newsgroups linux.debian.user, linux.debian.bugs.dist
Subject Re: systemd: How to get suricata started at boot?
Date 2017-05-03 13:00 +0200
Message-ID <tCZRo-41a-3@gated-at.bofh.it> (permalink)
References <tCYVk-3kJ-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Am 03.05.2017 um 11:11 schrieb Hans:
> Hello all,
> 
> I have installed suricata on my system, but it will not start at boot.
> 
> When I manually start it, it is working well.
> 
> As the document advises, I copied  /lib/systemd/system/suricata.service to 
> /etc/systemd/system/suricata.service and tested with

You only need to copy suricata.service to /etc if you want to change its
contents. Even then, often drop-in snippets are preferrable, which only
override/extend the parts you need

> systemctl start suricata.service
> 
> "ps -aux | grep suricata" showed me the running process. But after reboot, the 
> process is not started automatically. As init is no more supported by 
> suricata, but systemd,

The suricata package still ships a SysV init script, but if a systemd
service file exists, it takes precedence.

 how can I add this service into systemd, so that it is
> started automatically at boot? I am still not quite experienced with systemd.

systemctl enable suricata.service

will do the trick. That should be done by the package though.
I see you already filed a bug report [1] for that. The package should be
using init-system-helper/dh_systemd to help automate that.


[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=861732

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

systemd: How to get suricata started at boot? Hans <hans.ullrich@loop.de> - 2017-05-03 11:40 +0200
  Re: systemd: How to get suricata started at boot? Michael Biebl <biebl@debian.org> - 2017-05-03 13:00 +0200
    Bug#861732: systemd: How to get suricata started at boot? Arturo Borrero Gonzalez <arturo@debian.org> - 2017-05-03 17:50 +0200
      Re: Bug#861732: systemd: How to get suricata started at boot? Hans <hans.ullrich@loop.de> - 2017-05-03 18:30 +0200
  Re: systemd: How to get suricata started at boot? Dejan Jocic <jodejka@gmail.com> - 2017-05-03 13:00 +0200
    Re: systemd: How to get suricata started at boot? Hans <hans.ullrich@loop.de> - 2017-05-03 13:40 +0200
      Re: systemd: How to get suricata started at boot? Michael Biebl <biebl@debian.org> - 2017-05-03 16:00 +0200

csiph-web