Skip to content

Commit 8326648

Browse files
authored
Add examples of systemd services (#50)
1 parent cdcbc71 commit 8326648

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

contrib/bugzilla-jobqueue.service

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[Unit]
2+
Description=Bugzilla Daemon
3+
After=network.target
4+
5+
[Service]
6+
Type=simple
7+
WorkingDirectory=/home/bugzilla/harmony/
8+
ExecStart=/usr/bin/perl jobqueue.pl start -d -f
9+
Environment="PERL5LIB=/home/bugzilla/harmony/local/lib/perl5"
10+
User=bugzilla
11+
12+
[Install]
13+
WantedBy=multi-user.target

contrib/bugzilla.service

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[Unit]
2+
Description=Bugzilla Daemon
3+
After=network.target
4+
5+
[Service]
6+
Type=simple
7+
WorkingDirectory=/home/bugzilla/harmony/
8+
ExecStart=/usr/bin/perl local/bin/hypnotoad -f bugzilla.pl prefork
9+
Environment="PERL5LIB=/home/bugzilla/harmony/local/lib/perl5"
10+
Environment="MOJO_REVERSE_PROXY=2"
11+
Environment="LOG4PERL_CONFIG_FILE=log4perl-default.conf"
12+
User=bugzilla
13+
14+
[Install]
15+
WantedBy=multi-user.target

0 commit comments

Comments
 (0)