Added service file and corrected readme file.
This commit is contained in:
parent
e5aba6c520
commit
88864fd027
13
TiddlyWiki-template.service
Normal file
13
TiddlyWiki-template.service
Normal 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
|
||||||
|
|
||||||
@ -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>
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user