aliyunpan/assets/service/linux/aliyunpansync.service
2022-09-07 18:28:31 +08:00

18 lines
409 B
Desktop File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# linux service 配置文件模版
# centos系统默认存放路径为/lib/systemd/system/aliyunpansync.service
# 启动服务systemctl start aliyunpansync
# 停止服务systemctl stop aliyunpansync
[Unit]
Description=aliyunpansync
After=network.target
[Service]
Type=forking
ExecStart=/path/to/start.sh
ExecStop=/path/to/stop.sh
PrivateTmp=true
Restart=always
[Install]
WantedBy=multi-user.target