diff options
| author | Kana <[email protected]> | 2021-01-05 11:44:32 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-01-05 11:44:32 +0900 |
| commit | 5e274c58cedaf742492194292a3e1b74ad5d16c0 (patch) | |
| tree | f6886c48e2e3ce861e54c5d11e452400bb901a8f /docs/systemd.md | |
| parent | fix: try to remove thumbnail only if the file has one (diff) | |
| parent | Update systemd.md (diff) | |
| download | host.fuwn.me-5e274c58cedaf742492194292a3e1b74ad5d16c0.tar.xz host.fuwn.me-5e274c58cedaf742492194292a3e1b74ad5d16c0.zip | |
Merge pull request #232 from Biyoni/patch-1
Add systemd unit and guide
Diffstat (limited to 'docs/systemd.md')
| -rw-r--r-- | docs/systemd.md | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/docs/systemd.md b/docs/systemd.md new file mode 100644 index 0000000..6700bb8 --- /dev/null +++ b/docs/systemd.md @@ -0,0 +1,24 @@ +### Service config for systemd +The file chibisafe-example.service is to be moved to `/etc/systemd/system/chibisafe.service` + +You will need to edit the parameters: +- `User` to be the username/uid of your chibisafe instance +- `WorkingDirectory` to the **FULL** path to your chibisafe, `/home/chibisafe/chibisafe` for example. +- `EnvironmentFile` the same as the above, with the addition of `/.env`, `/home/chibisafe/chibisafe/.env` + +Example below. + +```[Unit] +Description=chibisafe, easy to use file uploader +After=network.target + +[Service] +Type=simple +User=chibisafe +WorkingDirectory=/home/chibisafe/chibisafe +EnvironmentFile=/home/chibisafe/chibisafe/.env +ExecStart=/usr/bin/npm run start +Restart=always + +[Install] +WantedBy=multi-user.target``` |