support systemd
This commit is contained in:
parent
57045892e9
commit
48948dab4a
|
@ -103,7 +103,7 @@ if [ "$1" = "configure" ]; then
|
||||||
elif [ -x /usr/sbin/service ]; then
|
elif [ -x /usr/sbin/service ]; then
|
||||||
/usr/sbin/service $server reload
|
/usr/sbin/service $server reload
|
||||||
elif [ -x /bin/systemctl ]; then
|
elif [ -x /bin/systemctl ]; then
|
||||||
/bin/systemctl ${server}.service reload
|
/bin/systemctl reload ${server}.service
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -42,7 +42,7 @@ if [ -f /usr/share/debconf/confmodule ]; then
|
||||||
elif [ -x /usr/sbin/service ]; then
|
elif [ -x /usr/sbin/service ]; then
|
||||||
/usr/sbin/service $server reload
|
/usr/sbin/service $server reload
|
||||||
elif [ -x /bin/systemctl ]; then
|
elif [ -x /bin/systemctl ]; then
|
||||||
/bin/systemctl ${server}.service reload
|
/bin/systemctl reload ${server}.service
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue