executa ddclient como um serviço em 16.04

0

não há descrição de como fazer isso no wiki do github ou sourceforge wiki apenas como

Existe um arquivo

/etc/default/ddclient

# Configuration for ddclient scripts
# generated from debconf on Thu Jul 27 17:32:33 ACST 2017
#
# /etc/default/ddclient

# Set to "true" if ddclient should be run every time DHCP client ('dhclient'
# from package isc-dhcp-client) updates the systems IP address.
run_dhclient="false"

# Set to "true" if ddclient should be run every time a new ppp connection is
# established. This might be useful, if you are using dial-on-demand.
run_ipup="false"

# Set to "true" if ddclient should run in daemon mode
# If this is changed to true, run_ipup and run_dhclient must be set to false.
run_daemon="true"

# Set the time interval between the updates of the dynamic DNS name in seconds.
# This option only takes effect if the ddclient runs in daemon mode.
daemon_interval="300"

Se eu for para

sudo systemctl edit --full  ddclient.service

um arquivo é criado com esses parâmetros

# Automatically generated by systemd-sysv-generator

[Unit]
Documentation=man:systemd-sysv-generator(8)
SourcePath=/etc/init.d/ddclient
Description=LSB: Update dynamic domain name service entries
Before=multi-user.target
Before=multi-user.target
Before=multi-user.target
Before=graphical.target
Before=shutdown.target
After=local-fs.target
After=remote-fs.target
After=network-online.target
After=systemd-journald-dev-log.socket
Wants=network-online.target
Conflicts=shutdown.target

[Service]
Type=forking
Restart=no
TimeoutSec=5min
IgnoreSIGPIPE=no
KillMode=process
GuessMainPID=no
RemainAfterExit=yes
ExecStart=/etc/init.d/ddclient start
ExecStop=/etc/init.d/ddclient stop

Isso não funciona na inicialização embora ...? Só posso obter o serviço para iniciar manualmente com sudo etc/init.d/ddclient start ou sudo systemctl start ddclient.service

    
por phaseform 27.07.2017 / 12:36

1 resposta

1

Você quer sudo update-rc.d ddclient enable

    
por Jahil Khalfe 27.07.2017 / 13:10