From: Michael Date: Sat, 5 Sep 2020 18:34:27 +0000 (+0200) Subject: Add examples of systemd services (#50) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8326648ef5b4892300669f19aae1c3cdd2c6a26f;p=thirdparty%2Fbugzilla.git Add examples of systemd services (#50) --- diff --git a/contrib/bugzilla-jobqueue.service b/contrib/bugzilla-jobqueue.service new file mode 100644 index 000000000..1307a4199 --- /dev/null +++ b/contrib/bugzilla-jobqueue.service @@ -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 index 000000000..4b44a5706 --- /dev/null +++ b/contrib/bugzilla.service @@ -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