diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2020-12-29 11:12:32 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2020-12-29 11:26:29 +0100 |
commit | 7eb04bdbe65f01982ffb184a0e7c1a1f3c020110 (patch) | |
tree | 162a566fb0a6d53fc550e5346d0f1194b5a75988 | |
parent | 2289ae102a460afd6ffffa8cff019f5ddd083401 (diff) |
Add systemd service file examplesystemd
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r-- | etc/lotide.service | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/etc/lotide.service b/etc/lotide.service new file mode 100644 index 0000000..d9a3143 --- /dev/null +++ b/etc/lotide.service @@ -0,0 +1,23 @@ +# +# +# This is an example systemd service definition file. +# Users are expected to write their own version of this based on this. +# +# + +[Unit] +After=network.target +Description=lotide service + +[Service] +Environment="DATABASE_URL=" +Environment="HOST_URL_ACTIVITYPUB=http://localhost:3333/apub" +Environment="HOST_URL_API=http://localhost:3333/api" +Environment="RUST_LOG=lotide=info" + +User=lotide +Group=lotide +Restart=on-failure + +ExecStart=lotide + |