forge
Explore
Log in

Don't you dare go Hollow

in_old

Clone
★ 0

0 watching0 forksRustGPL-3.01.1 MiB218b775Tahinli2 months ago90 commits

in.service20 lines, 720 bytesHistoryRawDownload
1# The systemd user unit in runs under on the server. The deploy workflow
2# installs this file as ~/.config/systemd/user/in.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/in.toml, the database and the key relative to it,
9# and only current/ is swapped by a deploy.
10[Unit]
11Description=in
12After=network-online.target
13
14[Service]
15WorkingDirectory=%h/in
16ExecStart=%h/in/current/in-web
17Restart=on-failure
18
19[Install]
20WantedBy=default.target