User Manager Systemd Service
User manager systemd service for K2 OnPremises Installation
Steps to add User Manager Systemd service
Design and Setup [Requires Root privileges]
Step 1 : Extract the linux user id of the chosen linux user.
Command to extract the UID for any user
id -u user_nameSample Run :
id -u user_name
1000Step 2 : Create the systemd service with the following name
vi /etc/systemd/system/user@UID.serviceThe UID corresponds to the user id of the linux user for which the service will run
Replace the UID with the value extracted in Step 1.
Sample Run :
vi /etc/systemd/system/user@1000.serviceStep 3 : Place the following content in the file created in Step 2
Step 4 : Enable and start the service
Sample Run :
Verification
In order to verify the service status, login to the machine with the chosen linux user via ssh, su, or any other mechanism.
Step 1 : Run the following command to set the XDG_RUNTIME_DIR environment variable.
Step 2 : Add the above export in the .bashrc/.bash_profile or other corresponding shell environment file based on your environment to set it permanently.
Step 3 : Check the service status.
Sample Run :
Last updated
Was this helpful?