Skip to content

Commit

Permalink
Merge pull request #137 from shawniverson/123117systemd
Browse files Browse the repository at this point in the history
mariadb dependency for systemd
  • Loading branch information
shawniverson authored Dec 31, 2017
2 parents 089f75c + a25cb9a commit c49c291
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
- Include 2 perl modules for spammassassin from debian tree
- Support for Fedora 27
- Fix install.sh modifying clamav-wrapper before MailScanner is installed
- Add mariadb as a prerequisite service for mailscanner systemd unit

09/29/2017 Changes in v5.0.6-5
==================================
Expand Down
8 changes: 6 additions & 2 deletions common/usr/lib/MailScanner/systemd/ms-systemd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
Description=LSB: MailScanner daemon
Documentation=man:systemd-sysv-generator(8)
SourcePath=/usr/lib/MailScanner/init/ms-init
After=network-online.target remote-fs.target rsyslog.service
After=network-online.target remote-fs.target rsyslog.service mariadb.service
Wants=network-online.target mariadb.service

[Service]
Type=forking
Expand All @@ -14,6 +15,9 @@ GuessMainPID=no
RemainAfterExit=yes
ExecStart=/usr/lib/MailScanner/init/ms-init start
ExecStop=/usr/lib/MailScanner/init/ms-init stop
EnvironmentFile=-/etc/MailScanner/defaults
ExecReload=/bin/kill -HUP $MAINPID
PIDFile=/var/run/MailScanner.pid

[Install]
WantedBy=multi-user.target
WantedBy=multi-user.target

0 comments on commit c49c291

Please sign in to comment.