coreos-home-server/config/service/rspamd/systemd/rspamd.service
Alex Palaistras aafa8d9f12 Move systemd files to separate folders
This will help make subsequent synchronization with hosts easier, as
systemd files and potential dropins are guarnateed to exist under a
certain hierarchy that can be dropped as-is into host configuration
directories.
2021-03-26 20:47:08 +00:00

18 lines
858 B
Desktop File

[Unit]
Description=Rspamd spam filtering system
Wants=container-build@%N.service container-network@mail.service container-network@internal.service redis.service
After=container-build@%N.service container-network@mail.service container-network@internal.service redis.service
[Service]
Restart=always
ExecStartPre=/bin/install --owner 11332 --group 11332 -d /var/lib/container-service/%N
ExecStartPre=/bin/podman create --replace --pull never --net internal,mail,redis --env-file /etc/container-service/%N/%N.env \
--publish 11332:11332 --publish 11334:11334 \
--volume /var/lib/container-service/%N:/var/lib/%N:z \
--name %N localhost/%N:latest
ExecStart=/bin/podman start --attach %N
ExecStop=/bin/podman stop --time 10 %N
[Install]
WantedBy=multi-user.target