Skip to content
Snippets Groups Projects
  • Lukasz Jagiello's avatar
    a18eedb9
    Use deb-systemd-invoke to restart service (#3506) · a18eedb9
    Lukasz Jagiello authored
    From man page:
    ```
    deb-systemd-invoke is a Debian-specific helper script which asks
           /usr/sbin/policy-rc.d before performing a systemctl call.
    
    deb-systemd-invoke is intended to be used from maintscripts to start
           systemd unit files. It is specifically NOT intended to be used
           interactively by users. Instead, users should run systemd and use
           systemctl, or not bother about the systemd enabled state in case they
           are not running systemd.
    ```
    
    This PR replace regular `systemctl` with `deb-systemd-invoke`.
    a18eedb9
    History
    Use deb-systemd-invoke to restart service (#3506)
    Lukasz Jagiello authored
    From man page:
    ```
    deb-systemd-invoke is a Debian-specific helper script which asks
           /usr/sbin/policy-rc.d before performing a systemctl call.
    
    deb-systemd-invoke is intended to be used from maintscripts to start
           systemd unit files. It is specifically NOT intended to be used
           interactively by users. Instead, users should run systemd and use
           systemctl, or not bother about the systemd enabled state in case they
           are not running systemd.
    ```
    
    This PR replace regular `systemctl` with `deb-systemd-invoke`.