OK so I have modified my service as below but the klipper socket is still owned by repetierserver user. I made a cron job that just changes the permissions every minute for my printer klipper socket but is there a way to make that socket owned by the user mks (as I am assuming I did correctly for the other repetierserver files)
[Unit]
Description=Repetier-Server 3D Printer Server
After=network.target
[Service]
Type=forking
PermissionsStartOnly=true
LimitNICE=-20
Nice=-20
User=mks
KillMode=process
TimeoutStopSec=30
User=repetierserver
Environment="LC_ALL=C"
ExecStartPre=/bin/mkdir -p /var/lib/Repetier-Server
ExecStartPre=/bin/chown -R mks /var/lib/Repetier-Server
ExecStart=/usr/local/Repetier-Server/bin/RepetierServer -c /usr/local/Repetier-Server/etc/RepetierServer.xml --daemon
Restart=on-failure
RestartSec=0
TasksMax=infinity
[Install]
WantedBy=multi-user.target