This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
zhangzhihan-device-manageme…/roles/tsg-cli-mxn/files/tsg-monitor.service

17 lines
420 B
SYSTEMD
Raw Normal View History

2020-01-25 22:15:16 +08:00
[Unit]
Description=tsg monitor service
Requires=network.target
After=network.target
[Service]
#WorkingDirectory=/opt/tsg/tsg-monitor/
2020-04-07 10:50:17 +08:00
Environment=PATH=/usr/lib64/qt-3.3/bin:/root/perl5/bin:/opt/consul-external/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:
2020-01-25 22:15:16 +08:00
ExecStart=/opt/tsg/tsg-monitor/tsg-monitor.sh
#ExecStop=/bin/kill $MAINPID
Type=simple
Restart=always
RestartSec=5s
[Install]
WantedBy=multi-user.target