* Use "initctl restart".
svn path=/nixos/trunk/; revision=25249
This commit is contained in:
parent
70402c9397
commit
c65c03099f
|
@ -114,17 +114,8 @@ in
|
|||
powerManagement.resumeCommands =
|
||||
''
|
||||
export PATH=${config.system.build.upstart}/sbin:$PATH
|
||||
|
||||
restart() {
|
||||
local job="$1"
|
||||
if initctl status "$job" 2> /dev/null | grep -q 'running'; then
|
||||
initctl stop "$job"
|
||||
initctl start "$job"
|
||||
fi
|
||||
}
|
||||
|
||||
restart wpa_supplicant
|
||||
restart dhclient
|
||||
initctl restart wpa_supplicant
|
||||
initctl restart dhclient
|
||||
'';
|
||||
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue