Commit 5d5d8ab3 authored by 老广's avatar 老广 Committed by GitHub

run service.sh using root user

parent 5489f3ae
......@@ -28,6 +28,11 @@ PROC_NAME="jumpserver"
lockfile=/var/lock/subsys/${PROC_NAME}
start() {
if [ $(whoami) != 'root' ];then
echo "Must run it using 'root'"
exit 1
fi
jump_start=$"Starting ${PROC_NAME} service:"
if [ -f $lockfile ];then
echo -n "jumpserver is running..."
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment