ver Mar13thv2
added a new service file with replacable arguments
This commit is contained in:
16
desktop_env/server/osbench_server@.service
Normal file
16
desktop_env/server/osbench_server@.service
Normal 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
|
||||||
Reference in New Issue
Block a user