diff --git a/doc/saio/bin/resetswift b/doc/saio/bin/resetswift index c7c9d9eae9..a9845674cd 100755 --- a/doc/saio/bin/resetswift +++ b/doc/saio/bin/resetswift @@ -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 " -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 diff --git a/doc/source/development_saio.rst b/doc/source/development_saio.rst index 0f391266ce..d4b9016b88 100644 --- a/doc/source/development_saio.rst +++ b/doc/source/development_saio.rst @@ -451,11 +451,6 @@ Setting up scripts for running Swift sed -i "/find \/var\/log\/swift/d" $HOME/bin/resetswift - On Fedora, replace ``service restart`` with ``systemctl restart - .service``:: - - sed -i "s/service \(.*\) restart/systemctl restart \1.service/" $HOME/bin/resetswift - #. Install the sample configuration file for running tests::