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

Using Systemd to start the script file on boot #2

Open
lamyergeier opened this issue Nov 17, 2022 · 0 comments
Open

Using Systemd to start the script file on boot #2

lamyergeier opened this issue Nov 17, 2022 · 0 comments

Comments

@lamyergeier
Copy link

lamyergeier commented Nov 17, 2022

I am using the following systemd service file to start the service automatically on boot

# Refer: [systemd.service](https://freedesktop.org/software/systemd/man/systemd.service.html)
[Unit]
Description=WgGesucht Service

[Service]
ExecStart=node /home/lamy/opt/bin/WgUpdater

[Install]
WantedBy=default.target

Further systemd can execute it as often as one wants.

Can you please, may be provide a simpler script file that excludes the part of the code that handles the repetition of the task? This is beneficial as systemd makes it much more user friendly to start on boot and other settings.

May be you can keep this along with your current script, so those who are interested in systemd can use that.

@lamyergeier lamyergeier changed the title Error: code: 'MODULE_NOT_FOUND' Created by mistake Nov 17, 2022
@lamyergeier lamyergeier reopened this Nov 17, 2022
@lamyergeier lamyergeier changed the title Created by mistake Using Systemd to start the script file on boot Nov 17, 2022
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

1 participant