Squash of Darkwing's 176a6bf4b..df65a3d4c on origin/darkwing/row190-r3, the 25 manifest paths, build-r3.patch efe898c2, manifest cc0ea9e8 (Filbert approve round 3, comment 29713). Design revision 3 in agents/darkwing/work/queue-190/DESIGN.md. Gate on based0bbc5c1cwith the patch: 15 package suites 2664 pass 0 fail, 10 scripts/test-*.sh suites 429 pass 0 fail (plus 156 node tests in the queue suite). Refactor moved to99a406ed3since, a window record touching no manifest path. Mutants 20 of 20 killed (BUILD.md, round 3). No live change: the stack runs from copy4429a104funtil a re-pin.
41 lines
1.6 KiB
Plaintext
41 lines
1.6 KiB
Plaintext
# Mosaic Discord connector, one instance per binding: mosaic-discord@<binding>.
|
|
# Rendered by scripts/discord-service.sh from packages/discord/systemd/;
|
|
# @REPO@ and @PATH@ are filled in at install time. Edit the template and
|
|
# reinstall; do not edit the installed copy.
|
|
[Unit]
|
|
Description=Mosaic Discord connector (%i)
|
|
Documentation=file://@REPO@/packages/discord/README.md
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
StartLimitIntervalSec=600
|
|
StartLimitBurst=5
|
|
|
|
[Service]
|
|
Type=simple
|
|
WorkingDirectory=@REPO@
|
|
Environment=PATH=@PATH@
|
|
@CONFIG_ENV@
|
|
# A supervised run first clears a lock left by a crash or a reboot, and
|
|
# refuses with exit 3 while STOP is present or the binding is held. Exit 3
|
|
# is never retried: the brake belongs to the operator. This happens inside
|
|
# the main process on purpose: systemd honours RestartPreventExitStatus only
|
|
# for the main process, so a refusing ExecStartPre would loop.
|
|
ExecStart=@REPO@/scripts/discord.sh run %i --supervised
|
|
# `systemctl --user reload` re-reads the binding in place (channels, users,
|
|
# limits); the connector refuses and keeps the old binding when the file is
|
|
# invalid or a fixed key changed. See reloads.jsonl under the journal.
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
Restart=on-failure
|
|
RestartSec=15
|
|
RestartPreventExitStatus=3
|
|
# `systemctl --user stop` sends SIGTERM; the connector finishes the turn in
|
|
# flight, then exits 0. The stop timeout covers the largest turn timeout a
|
|
# binding may set (3600 s) plus margin; a normal stop takes seconds.
|
|
KillSignal=SIGTERM
|
|
KillMode=mixed
|
|
TimeoutStopSec=3700
|
|
NoNewPrivileges=yes
|
|
|
|
[Install]
|
|
WantedBy=default.target
|