Start/Stop Script Ubuntu 16.04 [Help]

Paulo Roberto Tomasi pztomasi at gmail.com
Tue Dec 29 19:17:46 UTC 2020


Thank you very much for your answer.

After reading about starting system services I noticed I missed an
important step of service installation:

root at unbound:/# update-rc.d unbound defaults

After that service is up and running:

root at unbound:/etc/init.d# service unbound start
root at unbound:/etc/init.d# service unbound status
● unbound.service
   Loaded: loaded (/etc/init.d/unbound; bad; vendor preset: enabled)
  Drop-In: /run/systemd/generator/unbound.service.d
           └─50-insserv.conf-$named.conf
   Active: active (running) since Tue 2020-12-29 15:11:22 -04; 1s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 18176 ExecStart=/etc/init.d/unbound start (code=exited,
status=0/SUCCESS)
    Tasks: 1
   Memory: 3.1M
      CPU: 60ms
   CGroup: /system.slice/unbound.service
           └─18187 /usr/sbin/unbound

Dec 29 15:11:22 dns-nmm-02 systemd[1]: Starting unbound.service...
Dec 29 15:11:22 dns-nmm-02 unbound[18176]:  * Starting DNS server unbound
Dec 29 15:11:22 dns-nmm-02 unbound[18176]: /etc/init.d/unbound: 32:
/etc/init.d/unbound: /usr/lib/unbound/package-helper: not found
Dec 29 15:11:22 dns-nmm-02 unbound[18176]: /etc/init.d/unbound: 35:
/etc/init.d/unbound: /usr/lib/unbound/package-helper: not found
Dec 29 15:11:22 dns-nmm-02 unbound[18176]:    ...done.
Dec 29 15:11:22 dns-nmm-02 systemd[1]: Started unbound.service.
Dec 29 15:11:22 dns-nmm-02 unbound[18187]: [18187:0] notice: init module 0:
validator
Dec 29 15:11:22 dns-nmm-02 unbound[18187]: [18187:0] notice: init module 1:
iterator
Dec 29 15:11:22 dns-nmm-02 unbound[18187]: [18187:0] info: start of service
(unbound 1.13.0).



Em ter., 29 de dez. de 2020 às 11:49, A. Schulze via Unbound-users <
unbound-users at lists.nlnetlabs.nl> escreveu:

>
>
> Am 29.12.20 um 15:43 schrieb Paulo Roberto Tomasi via Unbound-users:
>
> > * then I've created the script /etc/init.d/unbound like this:
>
> > But it didn't work:
> >
> > service unbound start
> > Failed to start unbound.service: Unit unbound.service not found.
>
> try:
> chmod +x /etc/init.d/unbound
> /etc/init.d/unbound start
>
> you created an SYS-V init.d style start script and then asked systemd to
> start a service
> init.d and systemd do not necessarily have a relation...
>
> in general: this is not a unbound related issue. Read about starting
> system services.
>
> Andreas
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nlnetlabs.nl/pipermail/unbound-users/attachments/20201229/1ca56241/attachment.htm>


More information about the Unbound-users mailing list