Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Just a recipe to run a go-rod program as systemd service #1064

Open
chmike opened this issue May 24, 2024 · 1 comment
Open

Just a recipe to run a go-rod program as systemd service #1064

chmike opened this issue May 24, 2024 · 1 comment
Labels
enhance New feature or request

Comments

@chmike
Copy link

chmike commented May 24, 2024

Rod Version: v0.116.0

I wrote my first go-rod program using Chromium that works fine. I then wanted to run it nightly and this is when the trouble started as we can’t launch chromium from a cron job due to systemd cgroup sandboxing when chromium is a snap for instance as it is on Ubuntu.

After some research and testing I found the solution. You may want to post a reference to it in your FAQ in case someone experience the same problem as me.

Here is the link to the askubuntu question.

@chmike chmike added the enhance New feature or request label May 24, 2024
@ysmood
Copy link
Member

ysmood commented May 25, 2024

I also did something similar, but the approach is different. I use the golang cron job library and docker, if you use docker restart=always it will survive after system reboot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhance New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants