mirror of https://github.com/omar-polo/gmid.git
improve the service file usage instructions
Thanks Martin for providing these information :)
This commit is contained in:
parent
12866f1911
commit
eb82dcfbf4
|
@ -45,8 +45,18 @@ A simple service file for systemd. To install it
|
|||
then the usual ‘systemctl [status|start|enable|stop] gmid’ commands can be used to manage the server.
|
||||
|
||||
Some things to keep in mind:
|
||||
* the ExecStart path depends on the installation
|
||||
* decomment “User” and “Group” to start gmid without root priviledges. It’s not needed, since gmid can lower its privileges, but may come in handy.
|
||||
* the ExecStart path may depend on the installation
|
||||
* a ‘gmid’ user needs to be create for e.g. with
|
||||
|
||||
```how to create a dedicated user
|
||||
# useradd --system --no-create-home -s /bin/nologin -c "gmid Gemini server" gmid
|
||||
```
|
||||
|
||||
* logs can be inspected with journalctl(1)
|
||||
|
||||
```reads gmid logs with journalctl
|
||||
# journalctl -t gmid
|
||||
```
|
||||
|
||||
## Vim syntax files
|
||||
|
||||
|
|
|
@ -182,12 +182,15 @@
|
|||
<p>Some things to keep in mind:</p>
|
||||
<ul>
|
||||
<li>
|
||||
the <code>ExecStart</code> path depends on the installation.
|
||||
the <code>ExecStart</code> path may depend on the installation.
|
||||
</li>
|
||||
<li>
|
||||
decomment <code>User</code> and <code>Group</code> to start
|
||||
gmid without root priviledges. It's not needed, since gmid
|
||||
can lower its privileges, but may come in handy.
|
||||
a <code>gmid</code> user needs to be created for e.g. with:
|
||||
<pre># useradd --system --no-create-home -s /bin/nologin -c "gmid Gemini server" gmid</pre>
|
||||
</li>
|
||||
<li>
|
||||
logs can be inspected with <code>journalctl(1)</code>:
|
||||
<pre># journalctl -t gmid</pre>
|
||||
</li>
|
||||
</ul>
|
||||
<h2 id="vim-syntax-files">Vim syntax files</h2>
|
||||
|
|
Loading…
Reference in New Issue