Autodetect systemctl in SAIO and use it on systemd distros
Change-Id: I84a9b27baac89327749d8774032860f8ad5166f2
This commit is contained in:
parent
6b854bd908
commit
9cafa472a3
@ -15,6 +15,10 @@ mkdir -p /srv/1/node/sdb1 /srv/1/node/sdb5 \
|
||||
/srv/4/node/sdb4 /srv/4/node/sdb8
|
||||
sudo rm -f /var/log/debug /var/log/messages /var/log/rsyncd.log /var/log/syslog
|
||||
find /var/cache/swift* -type f -name *.recon -exec rm -f {} \;
|
||||
# On Fedora use "systemctl restart <service>"
|
||||
sudo service rsyslog restart
|
||||
sudo service memcached restart
|
||||
if [ "`type -t systemctl`" == "file" ]; then
|
||||
sudo systemctl restart rsyslog
|
||||
sudo systemctl restart memcached
|
||||
else
|
||||
sudo service rsyslog restart
|
||||
sudo service memcached restart
|
||||
fi
|
||||
|
@ -451,11 +451,6 @@ Setting up scripts for running Swift
|
||||
|
||||
sed -i "/find \/var\/log\/swift/d" $HOME/bin/resetswift
|
||||
|
||||
On Fedora, replace ``service <name> restart`` with ``systemctl restart
|
||||
<name>.service``::
|
||||
|
||||
sed -i "s/service \(.*\) restart/systemctl restart \1.service/" $HOME/bin/resetswift
|
||||
|
||||
|
||||
#. Install the sample configuration file for running tests::
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user