mirror of
https://github.com/NixOS/nix
synced 2025-07-07 14:21:48 +02:00
add shepherd service file
This commit is contained in:
parent
746d37d985
commit
a894729460
1 changed files with 11 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue