3
0
Fork 0
forked from mirrors/nixpkgs

* Skip the sys-* events, otherwise we reboot accidentally.

svn path=/nixos/trunk/; revision=7451
This commit is contained in:
Eelco Dolstra 2006-12-21 18:08:29 +00:00
parent 42cf9a9050
commit 78fcb0a356

View file

@ -70,6 +70,10 @@ if test "$action" = "switch" -o "$action" = "test"; then
# Start all new services and restart all changed services.
for event in $(cd $newEvents && ls); do
# Hack: skip the sys-* events.
if echo "$event" | grep -q "^sys-"; then continue; fi
if ! test -e "$oldEvents/$event"; then
echo "starting $event..."
initctl start "$event"