diff sm-archive.service.rc @ 23:37793d4c90a0

changes for rhel7 systemd and /var/run on tmpfs
author Carl Byington <carl@five-ten-sg.com>
date Mon, 06 Feb 2017 10:45:07 -0800
parents
children 7d599c9b7d65
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sm-archive.service.rc	Mon Feb 06 10:45:07 2017 -0800
@@ -0,0 +1,17 @@
+[Unit]
+Description = Mail filter for Archiving
+Wants = sendmail.service
+After = syslog.target
+After = local-fs.target
+After = network.target
+Before = sendmail.service
+
+[Service]
+Type = simple
+UMask = 0022
+User = sm-archive
+WorkingDirectory = SYSCONFDIR/sm-archive
+ExecStart = SBINDIR/smarchive -d 10 -p local:/var/run/sm-archive/sm-archive.sock
+
+[Install]
+WantedBy = multi-user.target