ShadowArch/Admin/restart-service

8 lines
149 B
Plaintext
Raw Normal View History

2016-11-09 22:25:00 -06:00
#!/bin/bash
if [ "$1" == "" ]; then echo Need a service name ; exit; fi
systemctl daemon-reload
systemctl restart $1
sleep 3
systemctl status -l $1