[Unit] Description=This is a service. After=network.target
[Service] Type=forking User=root
WorkingDirectory=/usr/local/server_name Restart=on-failure
RestartSec=30s
StartLimitInterval=0 RestartPreventExitStatus=SIGKILL ExecStart=/bin/sh 启动命令 ExecStop=/bin/sh 停止命令
[Install] WantedBy=multi-user.target
|