summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--extra/oxidized.service7
1 files changed, 7 insertions, 0 deletions
diff --git a/extra/oxidized.service b/extra/oxidized.service
index ce1b1a3..7b05aa8 100644
--- a/extra/oxidized.service
+++ b/extra/oxidized.service
@@ -1,4 +1,10 @@
#For debian 8 put it in /lib/systemd/system/
+#To set OXIDIZED_HOME instead of the default:
+# ~${oxidized_user}/.config/oxidized in debian 8, then uncomment
+#(and modify as required) the "Environment" variable below so
+#systemd sets the correct environment. Tested only on Debian 8.8.
+#YMMV otherwise.
+#
#For RHEL / CentOS 7 put it in /etc/systemd/system/
#and call it with systemctl start oxidized.service
@@ -11,6 +17,7 @@ Wants=network-online.target
ExecStart=/usr/local/bin/oxidized
User=oxidized
KillSignal=SIGKILL
+#Environment="OXIDIZED_HOME=/etc/oxidized"
[Install]
WantedBy=multi-user.target