I think something wrong with init system. Maybe systemd?

The following works:

$ sudo /etc/init.d/gogoc stop
$ sleep 60
$ sudo start-stop-daemon --start --exec /usr/sbin/gogoc --

Then gogoc runs perfect.
You can use
$ sudo start-stop-daemon --stop --signal HUP --exec /usr/sbin/gogoc
to stop the daemon.

But the following doesn't work:

$ sudo /etc/init.d/gogoc stop
$ sleep 60
$ sudo /etc/init.d/gogoc start
$ sleep 60       # gogoc kills here.
$ sudo start-stop-daemon --start --exec /usr/sbin/gogoc --
$ sleep 60       # gogoc kills again.
$ sudo start-stop-daemon --start --exec /usr/sbin/gogoc --
$ sleep 60       # gogoc kills continuely.
$ ...

gogoc will be killed if you keep using start-stop-daemon --start.

From the strace log I didn't see anything wrong inside gogoc.
It seems to me that someone tries to shutdown the gogoc by the proper
way. Gogoc execute linux.sh twice because the second time is it receives
the SIGHUP and prepares to shut itself down. Someone sends SIGHUP to it.

And I don't know how deal with systemd. Is there anything I can do further?

-- 
                                PaulLiu (劉穎駿)
E-mail: Ying-Chun Liu (PaulLiu) <paul...@debian.org>

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to