summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'www-apps/octoprint/files/octoprint.initd')
-rw-r--r--www-apps/octoprint/files/octoprint.initd39
1 files changed, 0 insertions, 39 deletions
diff --git a/www-apps/octoprint/files/octoprint.initd b/www-apps/octoprint/files/octoprint.initd
deleted file mode 100644
index 69256c1..0000000
--- a/www-apps/octoprint/files/octoprint.initd
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-PIDFILE="/run/octoprint/octoprint.pid"
-
-depend() {
- need net
-}
-
-start() {
- ebegin "Starting OctoPrint"
-
- checkpath -q -d -o ${OCTOPRINT_USER}:${OCTOPRINT_GROUP} -m 0770 "$(dirname "${PIDFILE}")"
-
- start-stop-daemon \
- --quiet \
- --start \
- --user ${OCTOPRINT_USER} \
- --group ${OCTOPRINT_GROUP} \
- --background --make-pidfile \
- --pidfile "${PIDFILE}" \
- --wait 1000 \
- --nicelevel -2 \
- --ionice 1 \
- --exec /usr/bin/octoprint serve
-
- eend $?
-}
-
-stop() {
- ebegin "Stopping OctoPrint"
-
- start-stop-daemon \
- --stop \
- --pidfile "${PIDFILE}"
-
- eend $?
-}