16 lines
299 B
Plaintext
16 lines
299 B
Plaintext
|
[Unit]
|
||
|
Description=Octoprint
|
||
|
After=syslog.target
|
||
|
After=network.target
|
||
|
|
||
|
[Service]
|
||
|
RestartSec=2s
|
||
|
Type=simple
|
||
|
User={{ octoprint_user }}
|
||
|
Group={{ octoprint_user }}
|
||
|
WorkingDirectory={{ octoprint_dir }}
|
||
|
ExecStart={{ octoprint_dir }}/bin/octoprint serve
|
||
|
Restart=always
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|