mirror of
https://github.com/NixOS/nix.git
synced 2025-11-08 19:46:02 +01:00
Prior to this commit, the unit contained this line:
ExecStart=@share/nix-daemon nix-daemon --daemon
which caused systemd to complain:
Failed to restart nix-daemon.service: Unit nix-daemon.service has a bad unit file setting.
See system logs and 'systemctl status nix-daemon.service' for details.
and had this in the unit output:
Sep 03 13:34:59 scadrial systemd[1]: /etc/systemd/system/nix-daemon.service:10: Neither a valid executable name nor an absolute path: share/nix-daemon
Sep 03 13:34:59 scadrial systemd[1]: nix-daemon.service: Unit configuration has fatal error, unit will not be started.
(Notice how it's trying to execute `share/nix-daemon`, which is unlikely
to exist.)
Now with this commit, the path to the daemon binary is properly set:
ExecStart=@/nix/store/lcbx6d8gzznf3z3c8lsv9jy3j6c67x6r-nix-2.25.0pre20240903_dirty/bin/nix-daemon nix-daemon --daemon
25 lines
631 B
Meson
25 lines
631 B
Meson
foreach config : [ 'nix-daemon.socket', 'nix-daemon.service' ]
|
|
configure_file(
|
|
input : config + '.in',
|
|
output : config,
|
|
install : true,
|
|
install_dir : get_option('prefix') / 'lib/systemd/system',
|
|
install_mode : 'rw-r--r--',
|
|
configuration : {
|
|
'storedir' : store_dir,
|
|
'localstatedir' : localstatedir,
|
|
'bindir' : bindir,
|
|
},
|
|
)
|
|
endforeach
|
|
|
|
configure_file(
|
|
input : 'nix-daemon.conf.in',
|
|
output : 'nix-daemon.conf',
|
|
install : true,
|
|
install_dir : get_option('prefix') / 'lib/tmpfiles.d',
|
|
install_mode : 'rw-r--r--',
|
|
configuration : {
|
|
'localstatedir' : localstatedir,
|
|
},
|
|
)
|