Community Packages

Please read this before reporting a bug:
http://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#70480 - [barrier-headless] Systemd service files missing

Attached to Project: Community Packages
Opened by jozef riha (jose1711) - Friday, 16 April 2021, 20:54 GMT
Task Type Bug Report
Category Packages
Status Assigned
Assigned To Morten Linderud (Foxboron)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

Description:
Since synergy package also includes systemd's service file it would be great if barrier includes one too

Additional info:
* barrier-headless 2.3.3-1
This task depends upon

Comment by jozef riha (jose1711) - Sunday, 09 May 2021, 21:45 GMT
Here's a quick&dirty suggestion for both server and client:

/usr/lib/systemd/user/barriers@.service
[Unit]
Description=Barrier Server Daemon
After=network.target,graphical-session.target

[Service]
ExecStart=/usr/bin/barriers --no-daemon -c %h/.local/share/barrier/.barrier.conf
Restart=on-failure

[Install]
WantedBy=default.target

/usr/lib/systemd/user/barrierc@.service
[Unit]
Description=Barrier Client Daemon
After=network.target

[Service]
ExecStart=/usr/bin/barrierc --no-daemon %i
Restart=on-failure

[Install]
WantedBy=default.target

User would then start the server using:
systemctl --user start barriers@$(id -un).service

And client using:
systemctl --user start barrierc@SERVER_HOSTNAME.service
Comment by Morten Linderud (Foxboron) - Sunday, 09 May 2021, 21:52 GMT

Loading...