Delete 'restart_service_from_remote'
This commit is contained in:
parent
73e0059139
commit
eb34574c38
|
@ -1,13 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
|
||||||
|
|
||||||
if ( [ -z $1 ] ); then
|
|
||||||
echo "USAGE: $0 service"
|
|
||||||
exit 3;
|
|
||||||
else
|
|
||||||
if [ pidof systemd >/dev/null ]; then
|
|
||||||
sudo systemctl restart $1
|
|
||||||
else
|
|
||||||
sudo service $1 restart
|
|
||||||
fi
|
|
||||||
fi
|
|
Loading…
Reference in New Issue