F5F Stay Refreshed Software Operating Systems Adjustment required for priority configuration on selected applications

Adjustment required for priority configuration on selected applications

Adjustment required for priority configuration on selected applications

A
Anselhero
Senior Member
582
05-22-2023, 05:34 PM
#1
Yes, it is possible to set fixed priority for specific apps on Ubuntu. You can use systemd services or the scheduler configuration to manage app priorities after reboot. Follow these steps:

1. Open a terminal and create a new service file:
```bash
sudo nano /etc/systemd/system/your-app.service
```

2. Add your app to the list with higher priority. For example:
```
[Unit]
Description=Your App Service
After=network.target

[Service]
User=youruser
ExecStart=/path/to/your-app
Priority=1000 # Adjust priority as needed
Restart=always
```

3. Save and exit the editor (in nano, press `CTRL+O`, `ENTER`, then `CTRL+X`).

4. Enable the service to start on boot:
```bash
sudo systemctl enable your-app.service
```

5. Check the current priority of your app using:
```bash
sudo systemctl list-units --type=service | grep your-app
```

6. If you want to keep it after reboot, ensure the priority is set correctly and the service is configured properly.

For screenshots or process management, you can use tools like `screen` or `tmux` to manage sessions, and adjust settings via `systemd` or `init.d`.

This approach works similarly to what you did on Pop-OS with KDL configuration. Let me know if you need help with specific commands!
A
Anselhero
05-22-2023, 05:34 PM #1

Yes, it is possible to set fixed priority for specific apps on Ubuntu. You can use systemd services or the scheduler configuration to manage app priorities after reboot. Follow these steps:

1. Open a terminal and create a new service file:
```bash
sudo nano /etc/systemd/system/your-app.service
```

2. Add your app to the list with higher priority. For example:
```
[Unit]
Description=Your App Service
After=network.target

[Service]
User=youruser
ExecStart=/path/to/your-app
Priority=1000 # Adjust priority as needed
Restart=always
```

3. Save and exit the editor (in nano, press `CTRL+O`, `ENTER`, then `CTRL+X`).

4. Enable the service to start on boot:
```bash
sudo systemctl enable your-app.service
```

5. Check the current priority of your app using:
```bash
sudo systemctl list-units --type=service | grep your-app
```

6. If you want to keep it after reboot, ensure the priority is set correctly and the service is configured properly.

For screenshots or process management, you can use tools like `screen` or `tmux` to manage sessions, and adjust settings via `systemd` or `init.d`.

This approach works similarly to what you did on Pop-OS with KDL configuration. Let me know if you need help with specific commands!