-
Notifications
You must be signed in to change notification settings - Fork 100
/
Copy pathsystemd_instructions.txt
32 lines (21 loc) · 1.26 KB
/
systemd_instructions.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Starting with YACReader 9.0.0 we supply a systemd service file for use with
YACReaderLibraryServer. To make use of it, follow these instructions:
1. Open yacreaderlibraryserver.service in a text editor of your choice.
Change the path used in the ExecStart variable to the location where your headless
server binary resides. If yacreaderlibraryserver was installed as part of a
package you can probably skip this step.
2. Copy the service file into ~/.local/share/systemd/user
3. Enable the service file by running:
"systemctl --user enable yacreaderlibraryserver"
4. Start the server by running:
"systemctl --user start yacreaderlibraryserver"
5. Check the server status by running:
"systemctl --user status yacreaderlibraryserver"
Important: Don't run this as root. None of these steps require root privileges.
By the default, the service is configured to restart yacreaderlibraryserver in
case of a crash and will automatically restart even after a kill or reboot.
This might give you some trouble when running YACReaderLibrary on the same machine.
To temporarily disable the server, run systemctl with the stop command:
"systemctl --user stop yacreaderlibraryserver"
To permanently disable it, use the "disable" command:
"systemctl --user disable yacreaderlibraryserver"