Xvfb

Change the User= and Group= parameters:

/etc/systemd/system/xinit.service
[Unit]Description=xinit with xvfbAfter=network.target[Service]User=bitlbeeGroup=bitlbeeExecStart=/usr/bin/xvfb-run bash %h/.xinitrc[Install]WantedBy=multi-user.target

slock

Locks the system with the help of . Very handy when closing the laptop lid for example.

/etc/systemd/system/screenlock.service
[Unit]Description=Lock X session using slockBefore=sleep.target [Service]User=
Environment=DISPLAY=:0ExecStart=/usr/bin/slock [Install]WantedBy=sleep.target

xautolock

Automatically lock the screen after a timeout of 10 minutes.

/etc/systemd/system/xautolock.service
[Unit]Description=Lock the screen automatically after a timeout [Service]Type=simpleUser=
Environment=DISPLAY=:0ExecStart=/usr/bin/xautolock -time 10 -locker slock -detectsleep [Install]WantedBy=graphical.target

ncdc

/etc/systemd/system/ncdc@.service
[Unit]Description=ncdcRequires=network.target local-fs.target[Service]Type=oneshotRemainAfterExit=yesKillMode=noneUser=%IExecStart=/usr/bin/tmux new-session -s dcpp -n ncdc -d ncdcExecStop=/usr/bin/tmux send-keys -t dcpp:ncdc "/quit" C-m[Install]WantedBy=multi-user.target

Squeezelite

/etc/conf.d/squeezelite
server="
:
"   # amend as appropriatename="
"       # amend as appropriatemac="
"      # amend as appropriatedevice="default"           # amend as appropriatelogtype="all"loglevel="info"logfile="/var/log/squeezelite.log"
/etc/systemd/system/squeezelite.service
[Unit]Description=Squeezelite ServiceAfter=network.target[Service]Type=simpleEnvironmentFile=/etc/conf.d/squeezeliteExecStart=/usr/bin/squeezelite -n ${name} -m ${mac} -d ${logtype}=${loglevel} -f ${logfile} -o ${device} -s ${server}RestartSec=5Restart=on-failure[Install]WantedBy=multi-user.target

See also