Created
July 21, 2019 09:16
-
-
Save mpdroog/d0910ba898733d750e49078db51e1dd7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Headless Chrome | |
Requires=network.target | |
After=multi-user.target | |
[Service] | |
LimitNOFILE=100 | |
Restart=on-failure | |
Type=simple | |
ExecStart=/usr/bin/chromium-browser --temp-profile --headless --disable-gpu --disable-software-rasterizer --disable-dev-shm-usage --remote-debugging-port=9222 --hide-scrollbars | |
User=chrome | |
Group=chrome | |
# Strip off all privileges | |
NoNewPrivileges=true | |
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 | |
# Rigid filesystem protection | |
ProtectSystem=full | |
ProtectHome=true | |
PrivateDevices=true | |
Environment=HOME=/tmp | |
# CGroup ruling | |
MemoryLimit=128M | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment