diff options
author | Vincent Ambo <tazjin@google.com> | 2020-05-17T15·43+0100 |
---|---|---|
committer | Vincent Ambo <tazjin@google.com> | 2020-05-17T15·43+0100 |
commit | 40395860c721165f0cc36dfd15b06bc1ea8590bc (patch) | |
tree | 0d335c4964d04a84c7827c7b05b1e1116b3b6524 /third_party/nix/misc/systemv/nix-daemon | |
parent | 0f2cf531f705d370321843e5ba9135b2ebdb5d19 (diff) |
chore(3p/nix): Remove old build system and other miscellanies r/741
There are still remnants of the old build system (for example, the build derivations are not yet updated at all), but we'll get there.
Diffstat (limited to 'third_party/nix/misc/systemv/nix-daemon')
-rwxr-xr-x | third_party/nix/misc/systemv/nix-daemon | 113 |
1 files changed, 0 insertions, 113 deletions
diff --git a/third_party/nix/misc/systemv/nix-daemon b/third_party/nix/misc/systemv/nix-daemon deleted file mode 100755 index fea53716721d..000000000000 --- a/third_party/nix/misc/systemv/nix-daemon +++ /dev/null @@ -1,113 +0,0 @@ -#!/bin/sh -# -# nix-daemon: Starts the nix package manager daemon -# -# chkconfig: 345 24 02 -# description: This is a daemon which enable the multi-user mode -# of the nix package manager. -# processname: nix-daemon -# pidfile: /var/run/nix/nix-daemon.pid - -### BEGIN INIT INFO -# Required-Start: -# Required-Stop: -# Should-Start: -# Should-Stop: -# Default-Start: 3 4 5 -# Default-Stop: 0 1 2 6 -# Short-Description: Starts the nix daemon -# Description: This is a daemon which enable the multi-user mode -# of the nix package manager. -### END INIT INFO - -NIX_DAEMON_BIN=/usr/bin/nix-daemon -#NIX_DAEMON_USER="root" -NIX_DAEMON_USER="nix-daemon" -NIX_DAEMON_OPTS="--daemon" - -umask 0022 - -if [ "$1" = 'status' ]; then - test -x $NIX_DAEMON_BIN || exit 4 -else - test -x $NIX_DAEMON_BIN || exit 5 -fi - -# Source function library. -. /etc/init.d/functions - -LOCKFILE=/var/lock/subsys/nix-daemon -RUNDIR=/var/run/nix -PIDFILE=${RUNDIR}/nix-daemon.pid -RETVAL=0 - -base=${0##*/} - -start() { - - mkdir -p ${RUNDIR} - chown ${NIX_DAEMON_USER}:${NIX_DAEMON_USER} ${RUNDIR} - - echo -n $"Starting nix daemon... " - - daemonize -u $NIX_DAEMON_USER -p ${PIDFILE} $NIX_DAEMON_BIN $NIX_DAEMON_OPTS - RETVAL=$? - echo - [ $RETVAL -eq 0 ] && touch ${LOCKFILE} - return $RETVAL -} - -stop() { - echo -n $"Shutting down nix daemon: " - killproc -p ${PIDFILE} $NIX_DAEMON_BIN - RETVAL=$? - [ $RETVAL -eq 0 ] && rm -f ${LOCKFILE} ${PIDFILE} - echo - return $RETVAL -} - -reload() { - echo -n $"Reloading nix daemon... " - killproc -p ${PIDFILE} $NIX_DAEMON_BIN -HUP - RETVAL=$? - echo - return $RETVAL -} - -restart() { - stop - start -} - -RETVAL=0 - -# caller switch -case "$1" in - start) - start - ;; - stop) - stop - ;; - status) - status -p ${PIDFILE} $NIX_DAEMON_BIN - RETVAL=$? - ;; - restart) - restart - ;; - reload) - reload - ;; - condrestart) - if [ -f $LOCKFILE ]; then - restart - fi - ;; - *) - echo $"Usage: $0 {start|stop|status|restart|condrestart}" - exit 2 - ;; -esac - -exit $RETVAL |