Xvfb

Change the User= and Group= parameters:

/etc/systemd/system/xinit.service
[Unit]
Description=xinit with xvfb
After=network.target

[Service]
User=bitlbee
Group=bitlbee
ExecStart=/usr/bin/xvfb-run bash %h/.xinitrc

[Install]
WantedBy=multi-user.target

slock

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

/etc/systemd/system/screenlock.service
[Unit]
Description=Lock X session using slock
Before=sleep.target
 
[Service]
User=
Environment=DISPLAY=:0
ExecStart=/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=simple
User=
Environment=DISPLAY=:0
ExecStart=/usr/bin/xautolock -time 10 -locker slock -detectsleep
 
[Install]
WantedBy=graphical.target

ncdc

/etc/systemd/system/[email protected]
[Unit]
Description=ncdc
Requires=network.target local-fs.target

[Service]
Type=oneshot
RemainAfterExit=yes
KillMode=none
User=%I
ExecStart=/usr/bin/tmux new-session -s dcpp -n ncdc -d ncdc
ExecStop=/usr/bin/tmux send-keys -t dcpp:ncdc "/quit" C-m

[Install]
WantedBy=multi-user.target

Squeezelite

/etc/conf.d/squeezelite
server=":"   # amend as appropriate
name=""       # amend as appropriate
mac=""      # amend as appropriate
device="default"           # amend as appropriate
logtype="all"
loglevel="info"
logfile="/var/log/squeezelite.log"
/etc/systemd/system/squeezelite.service
[Unit]
Description=Squeezelite Service
After=network.target

[Service]
Type=simple
EnvironmentFile=/etc/conf.d/squeezelite
ExecStart=/usr/bin/squeezelite -n ${name} -m ${mac} -d ${logtype}=${loglevel} -f ${logfile} -o ${device} -s ${server}
RestartSec=5
Restart=on-failure

[Install]
WantedBy=multi-user.target

See also