ver Mar13thv2

added a new service file with replacable arguments
This commit is contained in:
David Chang
2024-03-13 19:42:49 +08:00
parent 3a0ab526c8
commit 587a89fa7f

View File

@@ -0,0 +1,16 @@
[Unit]
Description=OSBench Server
StartLimitIntervalSec=60
StartLimitBurst=4
After=network.target auditd.service
[Service]
ExecStart=/usr/bin/python3 /home/user/main.py
User=user
WorkingDirectory=/home/user
Restart=on-failure
RestartSec=1
Environment="DISPLAY=%i"
[Install]
WantedBy=graphical.target