fix: 自启动
This commit is contained in:
1 parent
d574ba3414
commit
b91376663a
8 files changed
+769
No files matched your search
@@ -0,0 +1,25 @@
|
||||
# Install this file to /etc/systemd/system/xmonitor-sender.service on the target Ubuntu device.
|
||||
# If you do not use /home/ubuntu/xMonitor, update User, WorkingDirectory, ExecStart, and APP_DIR together.
|
||||
|
||||
[Unit]
|
||||
Description=xMonitor Robot Status Sender
|
||||
After=NetworkManager.service
|
||||
Wants=NetworkManager.service
|
||||
StartLimitIntervalSec=0
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=ubuntu
|
||||
WorkingDirectory=/home/ubuntu/xMonitor
|
||||
EnvironmentFile=/etc/xmonitor/xmonitor.env
|
||||
Environment=PYTHONUNBUFFERED=1
|
||||
ExecStart=/home/ubuntu/xMonitor/scripts/start_monitor_sender.sh
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
TimeoutStartSec=0
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
SyslogIdentifier=xmonitor-sender
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in new issue
Block a user