49 Matching Annotations
  1. Jul 2025
    1. You can also use systemd-cat to pipe the output of any command directly into the journal. For example: ls -l / | systemd-cat -p info -t my-script will run the command and log its output with an "info" priority and the identifier "my-script".

      Wow, this sounds hella useful for one off commands you want to have pick up in centralised logging

  2. Sep 2024
  3. Jan 2024
    1. Because we use systemd for most of our service management, these stdout/stderr streams are generally piped into systemd-journald which handles the local machine logs. With its RateLimitBurst and RateLimitInterval configurations, this gives us a simple knob to control the output of any given service on a machine. This has given our logging pipeline the colloquial name of the “journal pipeline”, however as we will see, our pipeline has expanded far beyond just journald logs.

      I did not expect to see journald being used as the basic building block

  4. Dec 2022
  5. Aug 2022
  6. Jan 2022
  7. Dec 2021
  8. Mar 2021
    1. I consider systemd/user as a good alternative for dex's autostart functionality and switched to it recently. In particular, systemd solves the issue of dex losing control over the started processes which causes processes to live longer than the X session which could cause additional annoyances like reboots taking a lot of time because the system is waiting for the processes to terminate.
  9. Feb 2021
    1. Systemd targets are reached once and do not fire again when the connection state changes. Depending how your network is managed there are a couple of options:

      Alternatives to react to network-changes in various linux setup: systemd, NetworkManager, netcl, wicd

  10. Jan 2021
    1. Reload the systemd manager configuration. This will rerun all generators (see systemd.generator(7)), reload all unit files, and recreate the entire dependency tree. While the daemon is being reloaded, all sockets systemd listens on behalf of user configuration will stay accessible.
  11. Nov 2020
  12. Dec 2019
  13. Nov 2019
  14. Sep 2019
  15. Mar 2019
  16. Oct 2018
  17. Sep 2018
  18. May 2016
    1. [Service] ExecStart=[node binary] /home/srv-node-sample/[main file] Restart=always StandardOutput=syslog StandardError=syslog SyslogIdentifier=node-sample User=srv-node-sample Group=srv-node-sample Environment=NODE_ENV=production [Install] WantedBy=multi-user.target