/sbin/reload: No such file or directory

v7

(Stéphane de Labrusse) #1
[root@ns7dev9 ~]# cat /etc/logrotate.d/httpd-admin 
/var/log/httpd-admin/*log {
    missingok
    notifempty
    sharedscripts
    delaycompress
    postrotate
        /sbin/reload httpd-admin > /dev/null 2>/dev/null || true
    endscript
}

 [root@ns7dev9 ~]# /sbin/reload httpd-admin
    -bash: /sbin/reload: No such file or directory

@dev_team we have a problem on ns7.4

it should be probably

systemctl reload httpd-admin


(Davide Principi) #2

Great catch @stephdl!

I cannot understand how it worked until now because “reload” is an upstart command that shouldn’t be available in ns7 branch. Probably it never worked correctly.

Would you mind filing a bug?


(Davide Principi) #3

Was fixed here