Skip to content
Snippets Groups Projects
  • Mark Hindley's avatar
    32a1fee5
    Don't manually set status symlinks for native openrc-run scripts. · 32a1fee5
    Mark Hindley authored and Luca Boccassi's avatar Luca Boccassi committed
    For native openrc-run scripts, fiddling with the links before the script is run
    actually prevents it from running as openrc-run detects the status has been
    changed and considers the script as already started.
    
    Fixes:-
    
    > grep '^#! */\(usr/\)\?sbin/openrc-run' /etc/init.d/fstrim
      #!/sbin/openrc-run
    > sudo service fstrim status
     * status: stopped
    > sudo service fstrim start
     * WARNING: fstrim has already been started
    
    Closes: #1081994
    32a1fee5
    History
    Don't manually set status symlinks for native openrc-run scripts.
    Mark Hindley authored and Luca Boccassi's avatar Luca Boccassi committed
    For native openrc-run scripts, fiddling with the links before the script is run
    actually prevents it from running as openrc-run detects the status has been
    changed and considers the script as already started.
    
    Fixes:-
    
    > grep '^#! */\(usr/\)\?sbin/openrc-run' /etc/init.d/fstrim
      #!/sbin/openrc-run
    > sudo service fstrim status
     * status: stopped
    > sudo service fstrim start
     * WARNING: fstrim has already been started
    
    Closes: #1081994