rename systemd service file to indicate local setting and create a new file for a system installation
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
[Unit]
|
||||
Description=ControlDeck
|
||||
ConditionFileIsExecutable=%h/.local/bin/controldeck
|
||||
ConditionFileIsExecutable=/usr/bin/controldeck
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Environment=PYTHONUNBUFFERED=1
|
||||
TimeoutStartSec=30
|
||||
ExecStartPre=/bin/sh -c 'source /etc/profile'
|
||||
ExecStart=%h/.local/bin/controldeck
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
ExecStart=/usr/bin/controldeck
|
||||
Restart=on-failure
|
||||
RestartSec=4
|
||||
StandardOutput=journal
|
||||
|
||||
[Install]
|
||||
#WantedBy=multi-user.target
|
||||
WantedBy=default.target
|
||||
|
||||
16
data/controldeck.service.local
Normal file
16
data/controldeck.service.local
Normal file
@@ -0,0 +1,16 @@
|
||||
[Unit]
|
||||
Description=ControlDeck
|
||||
ConditionFileIsExecutable=%h/.local/bin/controldeck
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Environment=PYTHONUNBUFFERED=1
|
||||
TimeoutStartSec=30
|
||||
ExecStartPre=/bin/sh -c 'source /etc/profile'
|
||||
ExecStart=%h/.local/bin/controldeck
|
||||
Restart=on-failure
|
||||
RestartSec=4
|
||||
StandardOutput=journal
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
Reference in New Issue
Block a user