比较提交
1 次代码提交
b37e8e9785
...
b0f8d41d9d
| 作者 | SHA1 | 提交日期 | |
|---|---|---|---|
| b0f8d41d9d |
@@ -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
|
||||
```
|
||||
|
||||
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.
|
||||
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`
|
||||
|
||||
|
||||
在新工单中引用
屏蔽一个用户