2014-03-14 15:30:32 +00:00
|
|
|
#!/bin/bash
|
2018-02-20 00:24:11 +00:00
|
|
|
#
|
|
|
|
# We use this to try and restart a service.
|
|
|
|
# If it's not running, do nothing.
|
|
|
|
# If it is running, restart it.
|
|
|
|
#
|
2014-03-14 15:30:32 +00:00
|
|
|
|
|
|
|
SERVICE=$1
|
2018-02-20 00:24:11 +00:00
|
|
|
/usr/bin/systemctl try-restart $1
|