Added service file and corrected readme file.

This commit is contained in:
Cacahuete 2021-09-03 23:39:00 +02:00
parent e5aba6c520
commit 88864fd027
2 changed files with 16 additions and 3 deletions

View File

@ -0,0 +1,13 @@
[Unit]
Description=TiddlyWiki: DaTemplate
[Service]
Restart=always
RestartSec=30
Type=idle
WorkingDirectory=/home/cacahuete/TW
ExecStart=/usr/local/bin/tiddlywiki TiddlyWiki-template --listen host=0.0.0.0 port=8081
[Install]
WantedBy=default.target

View File

@ -1,7 +1,7 @@
## Welcome ## Welcome
This repository contains a template folder to start a fresh [TiddlyWiki](https://tiddlywiki.com/) already containing my favorite plugins and settings. This repository contains a template folder to start a fresh [TiddlyWiki](https://tiddlywiki.com/) already containing my favorite plugins and settings.
**Bonus point:** I added a service file to enable a reboot proof server :sparkles: **Bonus point:** I added a service file to enable a reboot proof server :sparkles: _(do not forget to modify it to match your current username and folder structure)_
## :memo: Notes ## :memo: Notes
```Bash ```Bash
@ -10,7 +10,7 @@ sudo loginctl enable-linger <current user>
mkdir -p ~/.config/systemd/user mkdir -p ~/.config/systemd/user
cp template.service ~/.config/systemd/user/ cp template.service ~/.config/systemd/user/
systemctl --user enable template systemctl --user enable <wiki's root folder>
systemctl --user daemon-reload systemctl --user daemon-reload
systemctl --user start template systemctl --user start <wiki's root folder>
``` ```