mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
service foobar action -> systemctl action foobar
This commit is contained in:
parent
c3754dd6fa
commit
02a30125b5
6 changed files with 6 additions and 6 deletions
|
@ -147,7 +147,7 @@ do_post_regen() {
|
||||||
su openldap -s "/bin/bash" -c "/usr/sbin/slapindex"
|
su openldap -s "/bin/bash" -c "/usr/sbin/slapindex"
|
||||||
|
|
||||||
echo "Reloading slapd"
|
echo "Reloading slapd"
|
||||||
service slapd force-reload
|
systemctl force-reload slapd
|
||||||
|
|
||||||
# on slow hardware/vm this regen conf would exit before the admin user that
|
# on slow hardware/vm this regen conf would exit before the admin user that
|
||||||
# is stored in ldap is available because ldap seems to slow to restart
|
# is stored in ldap is available because ldap seems to slow to restart
|
||||||
|
|
|
@ -67,7 +67,7 @@ do_post_regen() {
|
||||||
chown -R metronome: /etc/metronome/conf.d/
|
chown -R metronome: /etc/metronome/conf.d/
|
||||||
|
|
||||||
[[ -z "$regen_conf_files" ]] \
|
[[ -z "$regen_conf_files" ]] \
|
||||||
|| service metronome restart
|
|| systemctl restart metronome
|
||||||
}
|
}
|
||||||
|
|
||||||
FORCE=${2:-0}
|
FORCE=${2:-0}
|
||||||
|
|
|
@ -76,7 +76,7 @@ do_post_regen() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[[ -z "$regen_conf_files" ]] \
|
[[ -z "$regen_conf_files" ]] \
|
||||||
|| { service postfix restart && service postsrsd restart; }
|
|| { systemctl restart postfix && systemctl restart postsrsd; }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -60,7 +60,7 @@ do_post_regen() {
|
||||||
chown -R vmail:mail /etc/dovecot/global_script
|
chown -R vmail:mail /etc/dovecot/global_script
|
||||||
}
|
}
|
||||||
|
|
||||||
service dovecot restart
|
systemctl restart dovecot
|
||||||
}
|
}
|
||||||
|
|
||||||
FORCE=${2:-0}
|
FORCE=${2:-0}
|
||||||
|
|
|
@ -66,7 +66,7 @@ do_post_regen() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[[ -z "$regen_conf_files" ]] \
|
[[ -z "$regen_conf_files" ]] \
|
||||||
|| service mysql restart
|
|| systemctl restart mysql
|
||||||
}
|
}
|
||||||
|
|
||||||
FORCE=${2:-0}
|
FORCE=${2:-0}
|
||||||
|
|
|
@ -15,7 +15,7 @@ do_post_regen() {
|
||||||
regen_conf_files=$1
|
regen_conf_files=$1
|
||||||
|
|
||||||
[[ -z "$regen_conf_files" ]] \
|
[[ -z "$regen_conf_files" ]] \
|
||||||
|| service avahi-daemon restart
|
|| systemctl restart avahi-daemon
|
||||||
}
|
}
|
||||||
|
|
||||||
FORCE=${2:-0}
|
FORCE=${2:-0}
|
||||||
|
|
Loading…
Add table
Reference in a new issue