forge
Explore
Log in

Don't you dare go Hollow

im_old

Clone
★ 0

0 watching0 forksRustGPL-3.0755.6 KiB84318dcTahinli2 months ago77 commits

im.service20 lines, 720 bytesHistoryRawDownload
1# The systemd user unit im runs under on the server. The deploy workflow
2# installs this file as ~/.config/systemd/user/im.service on every release,
3# reloads the manager, enables the unit and restarts it, so a freshly
4# provisioned box needs nothing but the SSH user, the deploy directory and
5# `loginctl enable-linger` (once, so the unit outlives the login).
6#
7# The working directory is the deploy path itself, not the release: the
8# binary reads config/im.toml, the database and the key relative to it,
9# and only current/ is swapped by a deploy.
10[Unit]
11Description=im
12After=network-online.target
13
14[Service]
15WorkingDirectory=%h/im
16ExecStart=%h/im/current/im-web
17Restart=on-failure
18
19[Install]
20WantedBy=default.target