Skip to content

Instantly share code, notes, and snippets.

@nillia
Created March 7, 2018 21:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nillia/b7213cd1c190ee9f7c3f770efb7207bb to your computer and use it in GitHub Desktop.
Save nillia/b7213cd1c190ee9f7c3f770efb7207bb to your computer and use it in GitHub Desktop.
Chrome headless (with debug in 9222) Systemd service
[Unit]
Description=Run an instance of Chrome headless with debug in 9222
[Service]
Type=simple
Restart=always
ProtectSystem=full
DynamicUser=true
ExecStart=/usr/bin/google-chrome --headless --disable-gpu --remote-debugging-port=9222
Environment=HOME=/tmp
Restart=always
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment