Hello  back 

systemctl is the default system to start /stop / manage service on a Debian 
10 / Ubuntu  Centos 7 /8 and in future  Centos  Stream ( ?) 
the two systems coexist (init.d and systemctl) : We can use start / stop 
system via init.d  ,  the weex-multi script is for this system and dont 
work fine  with systemctl service.

I find a wiki page   here https://github.com/weewx/weewx/wiki/systemd  by 
CameronD73 ( but  I dont find  how to contact his author) 

So  i use this system  for  my WMR200 station (weewx-WMR200.service) and 
another file service  wwewx-FROGGIT.service : 
(this file is in tar.gz source weewx).

I put them in /etc/system.d/system/

stef@debian-weewx:/etc/systemd/system$ ls  -l weewx*
-rw-r--r-- 1 root root 460 janv. 22 23:41 weewx-FROGGIT.service
-rw-r--r-- 1 root root 455 janv. 22 23:41 weewx-WMR200.service
stef@debian-weewx:/etc/systemd/system$


I unsunscribe the init.d service ("weewx service") from init.d  (rc)

And now  , I ve to service which control my 2 stations ! 

stef@debian-weewx:/etc/systemd/system$ ps  -ef | grep weewx
avahi      474     1  0 13:32 ?        00:00:00 avahi-daemon: running 
[debian-weewx.local]
root       559     1  0 13:32 ?        00:00:04 python3 
/usr/share/weewx/weewxd --daemon --log-label weewx-FROGGIT 
--pidfile=/run/weewx-FROGGIT.pid /etc/weewx/FROGGIT.conf
root       632     1  0 13:32 ?        00:00:04 python3 
/usr/share/weewx/weewxd --daemon --log-label weewx-WMR200 
--pidfile=/run/weewx-WMR200.pid /etc/weewx/WMR200.conf
stef      1684  1643  0 13:56 pts/0    00:00:00 grep weewx
stef@debian-weewx:/etc/systemd/system$


I will write a post blog on my website in few days.


Perhaps weex-multi must be write for systemctl control service 

Thansk a lot every one  ! 

I ve got a solution  ;) 

Thanks  Gary, Vince, Eddy 

Stéphane 


Le samedi 23 janvier 2021 à 03:21:45 UTC+1, graha...@gmail.com a écrit :

> hmm just recalled that was only for weewx process owned by non-root user - 
> presumably not relevant
>
> On 23 Jan 2021, at 1:18 pm, Graham Eddy <graha...@gmail.com> wrote:
>
> this sounds like the posting i made about 12 months ago where ‘stop’ does 
> not work because the options on start-stop-daemon changed and you had to 
> add an extra argument - without the new arg the ‘stop’ silently fails
>
> On 23 Jan 2021, at 9:02 am, vince <vince...@gmail.com> wrote:
>
> Gary - I would agree that 'stop' does not work on a debian10 system but 
> 'start' works fine.   Same problem exists regardless of whether you use the 
> init.d file directly or if you use systemctl to let systemd control the 
> processes.  Start works.  Stop silently does nothing.  Nothing I could see 
> in the logs to indicate that it even tried to shut the processes down. 
>
>
>
>

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/e3d4bdbd-4412-483c-9b46-a1feefca349en%40googlegroups.com.

Reply via email to