From a48211f38b0ecd45d990d50c92ba3af9a98c5983 Mon Sep 17 00:00:00 2001 From: Marcin Haba Date: Tue, 24 Mar 2015 11:12:28 +0100 Subject: [PATCH] baculum: Update Lighttpd config and add systemd unit --- gui/baculum/examples/rpm/baculum.lighttpd.conf | 4 ++-- gui/baculum/examples/rpm/baculum.service | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 gui/baculum/examples/rpm/baculum.service diff --git a/gui/baculum/examples/rpm/baculum.lighttpd.conf b/gui/baculum/examples/rpm/baculum.lighttpd.conf index 56856d6ff9..3f3c4b4598 100644 --- a/gui/baculum/examples/rpm/baculum.lighttpd.conf +++ b/gui/baculum/examples/rpm/baculum.lighttpd.conf @@ -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 index 0000000000..401f860429 --- /dev/null +++ b/gui/baculum/examples/rpm/baculum.service @@ -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 + -- 2.39.5