Jessie actually converts everything to use the systemctl service. There is a specific "generator" app that runs early in the bootstrap process that reads all of these 'init.d' files and creates a (supposedly) equivalent .service file for systemctl.
I'm not exactly sure where these generated service files are located (there are quite a few places that the systemctl service looks for the service files) but it should be something like weewx.service. I'm mentioning all of this because you can use this generated file to create your own file that is permanent and includes a line "Requires=ntp.service" that will tell the systemctl daemon to run your service only after the NTP service has done its thing (I'm no expert on these things but that is what I;ve been told and seems to work on my RPi3 system). I've attached my file if you are interested. You can also see the file path where I have placed it. (I run weewx in its own account that is actually on a NAS - hence the wait for the network, '/home' and '/home/weewx' folders being available; you may not need those.) Just an alternative to think about. Susan On Tuesday, December 26, 2017 at 8:28:35 PM UTC+11, gjr80 wrote: > > Hi, > > *sudo rm /etc/init.d/weewx * > > should what you want. > > Gary > > -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
pi@weather:~ $ cat /etc/systemd/system/weewx.service # systemd configuration for weewx [Unit] Description=weewx weather system Requires=syslog.service Requires=ntp.service Requires=network-online.target After=syslog.service After=ntp.service After=network-online.target RequiresMountsFor=/home RequiresMountsFor=/home/weewx [Service] ExecStart=/home/weewx/bin/weewxd --daemon --pidfile=/var/run/weewx.pid /home/weewx/weewx.conf ExecReload=/bin/kill -HUP $MAINPID Type=simple PIDFile=/var/run/weewx.pid #User=weewx #Group=weewx Restart=always RestartSec=5 [Install] WantedBy=multi-user.target pi@weather:~ $
