]> git.sur5r.net Git - bacula/bacula/commitdiff
baculum: Update Lighttpd config and add systemd unit
authorMarcin Haba <marcin.haba@bacula.pl>
Tue, 24 Mar 2015 10:12:28 +0000 (11:12 +0100)
committerMarcin Haba <marcin.haba@bacula.pl>
Tue, 24 Mar 2015 10:12:28 +0000 (11:12 +0100)
gui/baculum/examples/rpm/baculum.lighttpd.conf
gui/baculum/examples/rpm/baculum.service [new file with mode: 0644]

index 56856d6ff9d994ca9a60c5a81eafa1fd182098b6..3f3c4b45989b1f92e95b1352c55f1b433149af67 100644 (file)
@@ -7,8 +7,8 @@ server.port           = 9095
 server.username       = "lighttpd"
 server.groupname      = "lighttpd"
 server.document-root  = "/usr/share/baculum/htdocs"
-server.errorlog       = "/usr/share/baculum/htdocs/protected/logs/baculum-error.log"
-accesslog.filename    = "/usr/share/baculum/htdocs/protected/logs/baculum-access.log"
+server.errorlog       = "/var/log/baculum/baculum-error.log"
+accesslog.filename    = "/var/log/baculum/baculum-access.log"
 server.pid-file       = "/var/run/baculum.pid"
 
 server.modules = (
diff --git a/gui/baculum/examples/rpm/baculum.service b/gui/baculum/examples/rpm/baculum.service
new file mode 100644 (file)
index 0000000..401f860
--- /dev/null
@@ -0,0 +1,11 @@
+[Unit]
+Description=Baculum WebGUI Bacula Community tool
+After=network.target
+
+[Service]
+PIDFile=/var/run/baculum.pid
+ExecStart=/usr/sbin/lighttpd -f /etc/baculum/baculum.lighttpd.conf
+
+[Install]
+WantedBy=multi-user.target
+