Skip to content

Commit

Permalink
Merge pull request #12 from databus23/systemd_fixes
Browse files Browse the repository at this point in the history
Systemd fixes
  • Loading branch information
imeyer committed Feb 18, 2015
2 parents b8e14f7 + 2a62e38 commit ef31753
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions runit.spec
Expand Up @@ -104,7 +104,8 @@ EOT
fi
%endif

%if 0%{?rhel} > 7
%if 0%{?rhel} >= 7
systemctl enable runsvdir-start
systemctl start runsvdir-start
%endif

Expand All @@ -125,13 +126,18 @@ if [ $1 = 0 ]; then
if [ -f /etc/init/runsvdir.conf ]; then
stop runsvdir
fi
if [ -f /usr/lib/systemd/system/runsvdir-start.service ]; then
systemctl stop runsvdir-start
systemctl disable runsvdir-start
fi
fi

%postun
if [ $1 = 0 ]; then
if [ -f /etc/init/runsvdir.conf ]; then
rm -f /etc/init/runsvdir.conf
else
fi
if grep -q runsvdir-start /etc/inittab 2>/dev/null; then
echo " #################################################"
echo " # Remove /sbin/runsvdir-start from /etc/inittab #"
echo " # if you really want to remove runit #"
Expand Down

0 comments on commit ef31753

Please sign in to comment.