Permalink
Browse files

systemd-arch-units: cleanup install scriptlet

  • Loading branch information...
1 parent a17751b commit a0d0160fc9e642e75e27db7b7c91e1453952d636 @falconindy committed Apr 1, 2012
Showing with 2 additions and 4 deletions.
  1. +2 −4 systemd-arch-units-git/systemd-arch-units.install
@@ -2,8 +2,8 @@
reload_units() {
# reread all known unit files if systemd is running
- if [ -d '/sys/fs/cgroup/systemd' ]; then
- /bin/kill -1 1
+ if [ -e sys/fs/cgroup/systemd ]; then
+ kill -1 1
fi
}
@@ -18,8 +18,6 @@ that a unit is started at boot.
-----------------------------------------------------------------------
EOF
- # this might be installed at the same time as systemd which means that it's
- # not running yet. the daemon-reload call will fail with a bogus error.
reload_units
}

0 comments on commit a0d0160

Please sign in to comment.