User Tools

Site Tools


wiki:systemd_user_service

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
wiki:systemd_user_service [2021/08/19 11:42] – add Restart=on-failure antisawiki:systemd_user_service [2023/04/20 22:15] (current) – [systemd user service] edit systemd directory antisa
Line 2: Line 2:
  
 ====== systemd user service ====== ====== systemd user service ======
-1. Create user service in user's home directory ex. ///home/debian/.config/systemd/user///+1. Create user service in user's home directory ex. ///home/<app_user>/.config/systemd/user///
  
 Example: Example:
Line 42: Line 42:
   export DBUS_SESSION_BUS_ADDRESS="unix:path=${XDG_RUNTIME_DIR}/bus"   export DBUS_SESSION_BUS_ADDRESS="unix:path=${XDG_RUNTIME_DIR}/bus"
  
-then logout and login again.+then logout and login again. If its still not working and you get na error 
 + 
 +  Failed to connect to bus: No such file or directory 
 + 
 +try rebooting the server.
  
  
Line 54: Line 58:
   * https://serverfault.com/questions/841099/systemd-grant-an-unprivileged-user-permission-to-alter-one-specific-service   * https://serverfault.com/questions/841099/systemd-grant-an-unprivileged-user-permission-to-alter-one-specific-service
   * https://serverfault.com/a/1047069/353235   * https://serverfault.com/a/1047069/353235
 +  * https://unix.stackexchange.com/questions/434494/how-do-i-setup-user-autostart-and-properly-configure-systemd-user-services/434647#434647
  
wiki/systemd_user_service.1629366166.txt.gz · Last modified: 2021/08/19 11:42 by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki