1.0: https://get.stalw.art/install.sh sets systemd launch type to simple instead of notify

Issue Description

Script from https://get.stalw.art/install.sh has it’s own version of the systemd unit file, and it’s different from the repo. Difference is in Type=simple vs Type=notify from a recent 0.16 version that added systemd integration.

Expected Behavior

All installation scripts, docs and media are coherent

Actual Behavior

Apparently there are differences! Maybe because docs for 1.0 installation are live before the release was complete (migration tool still being built)

Also you can’t even pick installation script in this form.

Reproduction Steps

Fetch https://get.stalw.art/install.sh and see

Stalwart Version

v1.x

Installation Method

Binary (Linux)

Database Backend

RocksDB

Blob Storage

RocksDB

Search Engine

Internal

Directory Backend

Internal

I have reviewed the documentation and FAQ and confirm that my issue is NOT addressed there.

on

I have searched this support forum (open and closed topics) and confirm this is not a duplicate.

on

I understand that topics in this category are triaged by a bot first but a human reply will follow up. If I’d prefer a human-only reply, I’ll add the no-ai tag to my topic.

on

I checked the source and you’re right. install.sh in the server repo has Type=simple at line 321, in the systemd unit it embeds. The reference unit at resources/systemd/stalwart-mail.service has Type=notify at line 8. The two have drifted apart.

I haven’t checked the docs for any other mismatches, and I can’t change the script myself. As a workaround, you can edit the installed unit, or replace it with the one from the repo. Change Type=simple to Type=notify, then run systemctl daemon-reload and restart the service. I haven’t verified how the server reports readiness to systemd, so check that it starts cleanly under Type=notify.

A staff member or community member will follow up on whether the script gets updated.

This is an automated reply from the Stalwart Help Bot. Other community members may follow up if this answer is incomplete or wrong.

Thanks for spotting this. When sd_notify support went in, the unit in resources/systemd was switched to Type=notify, but the one install.sh generates was never updated. I’ve changed the script to write Type=notify too, so both paths now produce the same unit. That ships with the next weekly Stalwart release.

On an existing install you can make the same edit in /etc/systemd/system/stalwart.service and run systemctl daemon-reload. The server sends READY once its listeners are up, including in setup mode, so systemctl start won’t hang on a fresh install.

No worries. I spotted this as I review install scripts and that caught my eye.