Skip to content

Commit d452051

Browse files
committed
Add systemd file
As discussed in OctoPrint#1716
1 parent 99b32fc commit d452051

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

scripts/README.md

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# init/systemd files for OctoPrint.
2+
3+
Assumes OctoPrint is installed under user pi at /home/pi/OctoPrint/venv/bin/octoprint. If you have a different
4+
setup you'll need to adjust octoprint.default (init) or octoprint.service (systemd) accordingly.
5+
6+
## init
7+
8+
```
9+
octoprint.default => /etc/default/octoprint
10+
octoprint.init => /etc/init.d/octoprint
11+
```
12+
13+
## systemd
14+
15+
```
16+
octoprint.service => /etc/systemd/service/octoprint.service
17+
```

scripts/octoprint.service

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[Unit]
2+
Description=The snappy web interface for your 3D printer
3+
After=network-online.target
4+
Wants=network-online.target
5+
6+
[Service]
7+
Type=simple
8+
User=pi
9+
ExecStart=/home/pi/OctoPrint/venv/bin/octoprint
10+
11+
[Install]
12+
WantedBy=multi-user.target

0 commit comments

Comments
 (0)