You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wttr.in/share/systemd/README.md

1.0 KiB

To add wttr.in to systemd as a service, do the following steps.

  1. Create a systemd service file: Youll need to create a service file in ~/.config/systemd/user/ (for user-level) or /etc/systemd/system/ (for system-wide) directory. Lets create it for a user.

Create the directory if it doesnt exist:

mkdir -p ~/.config/systemd/user/

Then, create the service file called myscript.service:

cp share/systemd/wttrin.service ~/.config/systemd/user/wttrin.service
  1. Reload the systemd daemon: This will ensure systemd recognizes the new service.
systemctl --user daemon-reload
  1. Enable and start your service:

To start the service immediately, run:

systemctl --user start wttrin.service

To enable it to start automatically at boot, run:

systemctl --user enable wttrin.service
  1. Check the status: To verify that your service is running correctly, you can check its status:
systemctl --user status wttrin.service