mirror of
https://github.com/NixOS/nix
synced 2024-10-18 14:32:45 -04:00
Merge e0a6aea055
into ab0f9f9089
This commit is contained in:
commit
5acb4f749d
4
misc/dinit/nix-daemon.service.in
Normal file
4
misc/dinit/nix-daemon.service.in
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
type = process
|
||||||
|
command = /nix/var/nix/profiles/default/bin/nix-daemon --daemon
|
||||||
|
smooth-recovery = true
|
||||||
|
logfile = /var/run/nix-daemon.log
|
7
misc/openrc/nix-daemon.service.in
Normal file
7
misc/openrc/nix-daemon.service.in
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/sbin/openrc-run
|
||||||
|
|
||||||
|
name="${RC_SVCNAME}"
|
||||||
|
description="Nix Daemon"
|
||||||
|
command_args_background="--daemon"
|
||||||
|
pidfile="/var/run/nix-daemon.pid"
|
||||||
|
command="/nix/var/nix/profiles/default/bin/nix-daemon"
|
3
misc/runit/nix-daemon.service.in
Normal file
3
misc/runit/nix-daemon.service.in
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
sv check nix >/dev/null || exit 1
|
||||||
|
exec /nix/var/nix/profiles/default/bin/nix-daemon --daemon
|
11
misc/shepherd/nix-daemon.service.scm
Normal file
11
misc/shepherd/nix-daemon.service.scm
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
define nix-daemon
|
||||||
|
(make <service>
|
||||||
|
#:provides '(nix-daemon)
|
||||||
|
#:docstring "nix-daemon, the nix package manager's daemon"
|
||||||
|
#:start (make-forkexec-constructor
|
||||||
|
'("/nix/var/nix/profiles/default/bin/nix-daemon"))
|
||||||
|
#:stop (make-kill-destructor)
|
||||||
|
#:respawn? #t)
|
||||||
|
(register-services nix-daemon)
|
||||||
|
|
||||||
|
(start nix-daemon)
|
Loading…
Reference in a new issue