dip

old school recipes for janitorial snafu.
git clone git://git.ricketyspace.net/dip.git
Log | Files | Refs

commit 494414ea55e82ff4f370bbb4d14990196bcfcaf5
parent 7c431c748ad5ef40d453230629f4240daffb26f4
Author: rsiddharth <s@ricketyspace.net>
Date:   Sat, 11 Aug 2018 01:22:21 +0000

etc: Add init.d/guix-daemon.

Diffstat:
etc/init.d/guix-daemon | 23+++++++++++++++++++++++
1 file changed, 23 insertions(+), 0 deletions(-)

diff --git a/etc/init.d/guix-daemon b/etc/init.d/guix-daemon @@ -0,0 +1,23 @@ +#!/sbin/openrc-run +# +# Copyright 1999-2017 Gentoo Foundation +# Copyright 2018 rsiddharth <s@ricketyspace.net> +# +# Distributed under the terms of the GNU General Public License v2 + +start() { + ebegin "Starting ${SVCNAME}" + GUIX_PROFILE="/root/.guix-profile" ; \ + source $GUIX_PROFILE/etc/profile + start-stop-daemon --start --quiet --background \ + --exec /root/.guix-profile/bin/guix-daemon -- \ + --build-users-group=guixbuild + eend ${?} +} + +stop() { + ebegin "Stopping ${SVCNAME}" + start-stop-daemon --stop --quiet \ + --exec /root/.guix-profile/bin/guix-daemon + eend ${?} +}