8 行
149 B
Bash
可执行文件
8 行
149 B
Bash
可执行文件
#!/bin/bash
|
|
if [ "$1" == "" ]; then echo Need a service name ; exit; fi
|
|
|
|
systemctl daemon-reload
|
|
systemctl restart $1
|
|
sleep 3
|
|
systemctl status -l $1
|