diff options
author | Mikhail Gusarov <dottedmag@debian.org> | 2015-03-07 09:53:04 +0000 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2015-03-11 21:51:15 +0200 |
commit | 7fcaf66165072c1916d4dcddeb3b4d049370c426 (patch) | |
tree | 50616aa2ba727c8abc70780bcb9b11e2e271abd4 /centos | |
parent | 2c7f4e103f8f8626200ab4000e2c709381d0ba02 (diff) | |
download | rspamd-7fcaf66165072c1916d4dcddeb3b4d049370c426.tar.gz rspamd-7fcaf66165072c1916d4dcddeb3b4d049370c426.zip |
Unify systemd support
- Move it from debian/ and centos/
- Ensure Debian package installs .service/.socket
- Enable socket-activated service
- Clean up redundant CentOS config files
Diffstat (limited to 'centos')
-rw-r--r-- | centos/sources/logging.conf | 4 | ||||
-rw-r--r-- | centos/sources/rspamd.service | 11 | ||||
-rw-r--r-- | centos/sources/tmpfiles.d | 1 | ||||
-rw-r--r-- | centos/sources/workers.conf | 13 |
4 files changed, 0 insertions, 29 deletions
diff --git a/centos/sources/logging.conf b/centos/sources/logging.conf deleted file mode 100644 index 33234fde1..000000000 --- a/centos/sources/logging.conf +++ /dev/null @@ -1,4 +0,0 @@ -logging { - type = "console"; - level = "info"; -} diff --git a/centos/sources/rspamd.service b/centos/sources/rspamd.service deleted file mode 100644 index 64daa7967..000000000 --- a/centos/sources/rspamd.service +++ /dev/null @@ -1,11 +0,0 @@ -[Unit] -Description=rapid spam filtering system -After=syslog.target network.target remote-fs.target nss-lookup.target - -[Service] -Type=simple -PIDFile=/var/run/rspamd/rspamd.pid -ExecStartPre=/usr/bin/rspamd -u rspamd -g rspamd -t -ExecStart=/usr/bin/rspamd -f -c /etc/rspamd/rspamd.conf -u rspamd -g rspamd -ExecStop=/bin/kill -s QUIT $MAINPID -WantedBy=multi-user.target diff --git a/centos/sources/tmpfiles.d b/centos/sources/tmpfiles.d deleted file mode 100644 index 42bc936f9..000000000 --- a/centos/sources/tmpfiles.d +++ /dev/null @@ -1 +0,0 @@ -d /var/run/rspamd 0770 rspamd rspamd diff --git a/centos/sources/workers.conf b/centos/sources/workers.conf deleted file mode 100644 index aa3c43829..000000000 --- a/centos/sources/workers.conf +++ /dev/null @@ -1,13 +0,0 @@ -worker { - type = "normal"; - bind_socket = "systemd:0"; - mime = true; -} -worker { - type = "controller"; - bind_socket = "systemd:1"; - count = 1; - password = "q1"; - secure_ip = "127.0.0.1"; - static_dir = "${WWWDIR}"; -}
\ No newline at end of file |