Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/guysoft/OctoPi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGina Haeussge <gina@octoprint.org>2020-07-03 20:10:57 +0300
committerGina Haeussge <gina@octoprint.org>2020-07-03 20:10:57 +0300
commit7acd71e2491e658444f436677c1d05099fdd32cd (patch)
treeac05eb81874767f223f62e2475ef71c4bab7cf86 /src/modules/octopi
parent2a5910b24eb1b2c0dc923fa6c46f7c73f2bedc12 (diff)
Fix webcamd issues
Removed left over references to sysv init stuff. Fixed logging to /var/log/webcamd.log.
Diffstat (limited to 'src/modules/octopi')
-rw-r--r--src/modules/octopi/filesystem/root/etc/default/webcamd13
-rw-r--r--src/modules/octopi/filesystem/root/etc/logrotate.d/webcamd2
-rw-r--r--src/modules/octopi/filesystem/root/etc/systemd/system/webcamd.service2
-rwxr-xr-xsrc/modules/octopi/start_chroot_script1
4 files changed, 3 insertions, 15 deletions
diff --git a/src/modules/octopi/filesystem/root/etc/default/webcamd b/src/modules/octopi/filesystem/root/etc/default/webcamd
deleted file mode 100644
index cdbae57..0000000
--- a/src/modules/octopi/filesystem/root/etc/default/webcamd
+++ /dev/null
@@ -1,13 +0,0 @@
-# Configuration for /etc/init.d/webcamd
-
-# Daemon
-DAEMON=/root/bin/webcamd
-
-# Log file to use
-LOG=/var/log/webcamd.log
-
-# User to run under
-USER=pi
-
-# Should we run at startup?
-ENABLED=1
diff --git a/src/modules/octopi/filesystem/root/etc/logrotate.d/webcamd b/src/modules/octopi/filesystem/root/etc/logrotate.d/webcamd
index 5c148ac..2c5b5c6 100644
--- a/src/modules/octopi/filesystem/root/etc/logrotate.d/webcamd
+++ b/src/modules/octopi/filesystem/root/etc/logrotate.d/webcamd
@@ -1,4 +1,4 @@
-/var/log/webcam.log
+/var/log/webcamd.log
{
rotate 4
weekly
diff --git a/src/modules/octopi/filesystem/root/etc/systemd/system/webcamd.service b/src/modules/octopi/filesystem/root/etc/systemd/system/webcamd.service
index 5336380..2416f57 100644
--- a/src/modules/octopi/filesystem/root/etc/systemd/system/webcamd.service
+++ b/src/modules/octopi/filesystem/root/etc/systemd/system/webcamd.service
@@ -4,6 +4,8 @@ ConditionPathExists=/etc/octopi_streamer/mjpeg
[Service]
WorkingDirectory=/root/bin
+StandardOutput=append:/var/log/webcamd.log
+StandardError=append:/var/log/webcamd.log
ExecStart=/root/bin/webcamd
Restart=always
Type=forking
diff --git a/src/modules/octopi/start_chroot_script b/src/modules/octopi/start_chroot_script
index de87db3..4d595b8 100755
--- a/src/modules/octopi/start_chroot_script
+++ b/src/modules/octopi/start_chroot_script
@@ -255,7 +255,6 @@ then
else
rm /etc/logrotate.d/webcamd
rm /etc/systemd/system/webcamd.service
- rm /etc/default/webcamd
rm /root/bin/webcamd
fi