Skip to content

Instantly share code, notes, and snippets.

@qntmpkts
Created August 29, 2016 02:19
Show Gist options
  • Save qntmpkts/6f22bffbe573a44da3c4b8b63260da4a to your computer and use it in GitHub Desktop.
Save qntmpkts/6f22bffbe573a44da3c4b8b63260da4a to your computer and use it in GitHub Desktop.
crd.service for daemonizing chrome-remote-desktop with systemd
[Unit]
Description="Chrome Remote Desktop host daemon"
[Service]
ExecStart=/usr/bin/crd --start
ExecStop=/usr/bin/crd --stop
ExecReload=/usr/bin/crd --reload
Restart=always
TimeoutStopSec=10
[Install]
WantedBy=multi-user.target
@simone-viozzi
Copy link

Here's an updated version:

[Unit]
Description="Chrome Remote Desktop host daemon"

[Service]
Type=forking
ExecStart=/usr/bin/crd --start
ExecStop=/usr/bin/crd --stop  
ExecReload=/usr/bin/crd --reload
Restart=always
RestartSec=5  
TimeoutStopSec=30      

[Install]
WantedBy=multi-user.target

And it needs to be put in the Systemd user space.

To activate the service:

systemctl --user start crd.service
systemctl --user enable crd.service

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment