Compare commits

..

1 Commits

View File

@@ -77,7 +77,7 @@ It's certainly possible to use Openbox to autostart your server's GUI programs b
Here are the necessary steps to create and activate a systemd service file to start and stop JRiver Media Center.
1. Create the file `/etc/systemd/system/jriver.service` and add the following (replacing username with your username):
1. Create the file `/etc/systemd/system/jriver.service` and add the following (replacing *username* with your username):
```
[Unit]
Description=JRiver Media Center 25
@@ -97,7 +97,7 @@ TimeoutStopSec=45
WantedBy=graphical.target
```
The key here is the `After=graphical.target` condition that will launch the program only after X has started. There are plenty of additional systemd options that can be used for sandboxing or to improve process management using PID files, but that is outside the scope of this article.
You'll notice that the key here is the `After=graphical.target` condition that will launch the program only after X has started. There are plenty of additional systemd options that can be used for sandboxing or to improve process management using PID files, but that is outside the scope of this article.
2. Reload, restart, and enable the service file to load on boot: `sudo systemctl daemon-reload && sudo systemctl enable --now jriver.service`