[debian-edu-commits] debian-edu/ 01/01: Replace all direct calls to init scripts with systemctl calls.
Wolfgang Schweer
schweer-guest at moszumanska.debian.org
Fri Jun 3 16:07:08 UTC 2016
This is an automated email from the git hooks/post-receive script.
schweer-guest pushed a commit to branch master
in repository debian-edu-config.
commit 0ea1c2cb66c0ff2bfde22f7ad4d9336b99e2d8e2
Author: Wolfgang Schweer <wschweer at arcor.de>
Date: Fri Jun 3 18:06:12 2016 +0200
Replace all direct calls to init scripts with systemctl calls.
---
ldap-tools/ldap-debian-edu-install | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/ldap-tools/ldap-debian-edu-install b/ldap-tools/ldap-debian-edu-install
index fc63ac7..c0ec367 100755
--- a/ldap-tools/ldap-debian-edu-install
+++ b/ldap-tools/ldap-debian-edu-install
@@ -46,12 +46,12 @@ set -e
#
# o restart Kerberos KDC and admin server:
#
-# $ /etc/init.d/krb5-kdc restart
-# $ /etc/init.d/krb5-admin-server restart
+# $ systemctl restart krb5-kdc.service
+# $ systemctl restart krb5-admin-server.service
#
# o And finally restart your webservice, e.g.
#
-# $ /etc/init.d/apache2 restart
+# $ systemctl restart apache2.service
#
# o If https://tjener/gosa/ shows an error, rebooting tjener may help.
@@ -193,7 +193,7 @@ slapd_stop() {
if [ -f /var/run/slapd/slapd.pid ] &&
kill -0 $(cat /var/run/slapd/slapd.pid) ; then
RESTARTSLAPD=true
- /etc/init.d/slapd stop
+ systemctl stop slapd.service
# Make sure slapd is really stopped
SLAPPIDS=$(pidof slapd || /bin/true)
@@ -249,7 +249,7 @@ dns_stop() {
PID=`pidof named || /bin/true`
if [ -n "$PID" ]; then
echo "info: stopping bind9 with pid $PID"
- /etc/init.d/bind9 stop
+ systemctl stop bind9.service
fi
}
@@ -403,7 +403,7 @@ EOF
PID=`pidof slapd || /bin/true`
if [ -z "$PID" ]; then
echo "The LDAP server slapd seems not to be running. Trying to start slapd." 1>&2
- /etc/init.d/slapd start
+ systemctl start slapd.service
slapd_started=true
fi
@@ -416,7 +416,7 @@ EOF
## FIXME: this next part now is experimental... it needs sanity checks...
# Samba will also need DNS to bind to LDAP
- /etc/init.d/bind9 start
+ systemctl start bind9.service
# sync DNS from LDAP for the first time... (this has to run as uid ,,bind''!)
su -s /bin/sh -c "PATH=/usr/sbin:/sbin:/usr/bin:/bin /usr/sbin/ldap2bind" - bind
@@ -539,7 +539,7 @@ EOF
echo "info: migrating SLAPD configuration to slapd.d format"
mkdir /etc/ldap/slapd.d
slapd -f /etc/ldap/slapd.conf -F /etc/ldap/slapd.d
- /etc/init.d/slapd stop
+ systemctl stop slapd.service
chown -R openldap:openldap /etc/ldap/slapd.d
# In case the init.d script fail to stop the service (which it
# does when testing 2010-09-07).
@@ -584,7 +584,7 @@ fi
# Restart ldap server if we stopped it and it aint already running
SLAPPIDS=$(pidof slapd || /bin/true)
if [ true = "$RESTARTSLAPD" ] && [ -z "$SLAPPIDS" ] ; then
- /etc/init.d/slapd start
+ systemctl start slapd.service
fi
chown mail.mail /var/lib/maildirs/
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/debian-edu-config.git
More information about the debian-edu-commits
mailing list