Ubuntu下systemd服务的配置

1. 在/lib/systemd/system目录下建立服务启动脚本testservice.servicecode 2. 文件内容以下:ip [Unit] Description=TestService [Service] ExecStart=/home/test/exec   # 可执行文件路径 WorkingDirectory=/home/test/    #工做目录 Restart=alw
相关文章
相关标签/搜索