]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Add examples of systemd services (#50)
authorMichael <MasterWayZ@users.noreply.github.com>
Sat, 5 Sep 2020 18:34:27 +0000 (20:34 +0200)
committerGitHub <noreply@github.com>
Sat, 5 Sep 2020 18:34:27 +0000 (20:34 +0200)
contrib/bugzilla-jobqueue.service [new file with mode: 0644]
contrib/bugzilla.service [new file with mode: 0644]

diff --git a/contrib/bugzilla-jobqueue.service b/contrib/bugzilla-jobqueue.service
new file mode 100644 (file)
index 0000000..1307a41
--- /dev/null
@@ -0,0 +1,13 @@
+[Unit]
+Description=Bugzilla Daemon
+After=network.target
+
+[Service]
+Type=simple
+WorkingDirectory=/home/bugzilla/harmony/
+ExecStart=/usr/bin/perl jobqueue.pl start -d -f
+Environment="PERL5LIB=/home/bugzilla/harmony/local/lib/perl5"
+User=bugzilla
+
+[Install]
+WantedBy=multi-user.target
diff --git a/contrib/bugzilla.service b/contrib/bugzilla.service
new file mode 100644 (file)
index 0000000..4b44a57
--- /dev/null
@@ -0,0 +1,15 @@
+[Unit]
+Description=Bugzilla Daemon
+After=network.target
+
+[Service]
+Type=simple
+WorkingDirectory=/home/bugzilla/harmony/
+ExecStart=/usr/bin/perl local/bin/hypnotoad -f bugzilla.pl prefork
+Environment="PERL5LIB=/home/bugzilla/harmony/local/lib/perl5"
+Environment="MOJO_REVERSE_PROXY=2"
+Environment="LOG4PERL_CONFIG_FILE=log4perl-default.conf"
+User=bugzilla
+
+[Install]
+WantedBy=multi-user.target