sprinklers_pi

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

sprinklers_pi

Postby tritron » Sun Sep 29, 2013 4:42 am

I created sprinklers_pi aur package. I have one issue starting sprinklers_pi from systemctl it starts but it it fails as sytemctl does not knows that deamon was started and it dies. Any ideas on getting it to work
[Unit]
Description=Sprinkler Service
After=network.target nss-lookup.target

[Service]
Type=forking
ExecStart=/usr/bin/sprinklers_pi /etc/sprinklers_pi -L /var/log/sprinklers_pi
ExecStop=/usr/bin/kill -HUP $MAINPID
PIDFile=/var/run/sprinklers_pi.pid

[Install]
WantedBy=multi-user.target
tritron
 
Posts: 83
Joined: Thu Jun 16, 2011 7:16 pm

Re: sprinklers_pi

Postby moonman » Sun Sep 29, 2013 5:41 am

add "RemainAfterExit=yes" to the service section
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: sprinklers_pi

Postby tritron » Sun Sep 29, 2013 2:08 pm

Thank you for that but it is still
sprinklers_pi.service operation timed out. Terminating.
tritron
 
Posts: 83
Joined: Thu Jun 16, 2011 7:16 pm

Re: sprinklers_pi

Postby moonman » Sun Sep 29, 2013 5:16 pm

Try using "oneshot" type
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 1 guest