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

adding Service lines #6

Open
gazigo opened this issue Aug 23, 2021 · 1 comment
Open

adding Service lines #6

gazigo opened this issue Aug 23, 2021 · 1 comment

Comments

@gazigo
Copy link

gazigo commented Aug 23, 2021

Hi @danielewood Thanks for creating this. I have followed your setup and i have only one problem with adding

ExecStartPre=/usr/local/bin/cloudflared update
ExecStartPost=/usr/local/bin/plexargod
Environment=RUN_BY_SYSTEMD=1

can you please explain where do i need to add those lines ? I tried with this commend in putty ( cloudflared.service ) ad i have tried also ( Service ) but I'm not getting anything.

@danielewood
Copy link
Owner

danielewood commented Aug 25, 2021

On a Debian/Ubuntu system, you are editing /etc/systemd/system/cloudflared.service

Example file contents with the changes made:

[Unit]
Description=Argo Tunnel
After=network.target

[Service]
TimeoutStartSec=0
Type=notify
ExecStartPre=/usr/local/bin/cloudflared update
ExecStart=/usr/local/bin/cloudflared --config /etc/cloudflared/config.yml --origincert /etc/cloudflared/cert.pem --no-autoupdate
ExecStartPost=/usr/local/bin/plexargod
Environment=RUN_BY_SYSTEMD=1
Restart=on-failure
RestartSec=5s

[Install]
WantedBy=multi-user.target

After you have made the changes:

sudo systemctl daemon-reload
sudo systemctl restart cloudflared

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

No branches or pull requests

2 participants