2023-05-17 02:25:38 +08:00
|
|
|
[Unit]
|
2023-07-11 23:16:08 +08:00
|
|
|
Description=Stalwart __TITLE__ Server
|
2023-05-17 02:25:38 +08:00
|
|
|
Conflicts=postfix.service sendmail.service exim4.service
|
2023-07-11 23:16:08 +08:00
|
|
|
ConditionPathExists=__PATH__/etc/config.toml
|
2023-05-17 02:25:38 +08:00
|
|
|
After=network-online.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
LimitNOFILE=65536
|
|
|
|
KillMode=process
|
|
|
|
KillSignal=SIGINT
|
|
|
|
Restart=on-failure
|
|
|
|
RestartSec=5
|
2023-07-11 23:16:08 +08:00
|
|
|
ExecStart=__PATH__/bin/stalwart-__NAME__ --config=__PATH__/etc/config.toml
|
2023-05-17 02:25:38 +08:00
|
|
|
PermissionsStartOnly=true
|
|
|
|
StandardOutput=syslog
|
|
|
|
StandardError=syslog
|
2023-07-11 23:16:08 +08:00
|
|
|
SyslogIdentifier=stalwart-__NAME__
|
2023-05-17 02:25:38 +08:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|