guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Install script supporting sysV init?


From: Jan
Subject: Re: Install script supporting sysV init?
Date: Thu, 30 Jan 2020 15:11:58 +0100

I made some more tests and it turns out the start procedure doesn't
work when ran manually - only the first time, the system boots,
guix-daemon is started, but if stopped, then you can't turn it on again
in the session.

Also why in the stop procedure, we kill the process two times?
 kill "${pid}"
 sleep 10
 kill -9 "${pid}" || true

In my opinion after waiting for 10 seconds, there should be a
conditional checking if the process still exists, to prevent throwing
error.

And one of the procedures restart or force-reload caused error, because
it was empty, so I copied contents of one of these into another like
this:

restart)
  "$0" stop
  "$0" start
  ;;
force-reload)
  "$0" stop
  "$0" start
  ;;


Jan Wielkiewicz



reply via email to

[Prev in Thread] Current Thread [Next in Thread]