aleksandro Posted August 9, 2011 Report Share Posted August 9, 2011 Witam, W fedorze 15 po wykonaniu upgrade-u z fedory 14 w usłudze dovecot nie działa opcja reload, czyli po wpisaniu komendy: # /sbin/service dovecot reload dostaję zwrotkę jak poniżej: # Reloading dovecot configuration (via systemctl): Failed to issue method call: Job type reload is not applicable for unit dovecot.service. Problem jest np. przy usłudze logrotate (rotacja logów dla dovecot-a z wykorzystaniem opcji reload). Poniżej zawartość pliku dovecot w /etc/logrotate.d: /var/log/dovecot.log { missingok daily rotate 28 notifempty nocompress sharedscripts postrotate /sbin/service dovecot reload > /dev/null 2>/dev/null || true endscript } Dokładne info na temat systemu, na którym wystąpił problem: Linux 2.6.38.8-35.fc15.i686 #1 SMP Wed Jul 6 14:46:26 UTC 2011 i686 i686 i386 GNU/Linux Proszę o pomoc w rozwiązaniu problem :-) 1 Link to comment Share on other sites More sharing options...
@WalDo Posted August 9, 2011 Report Share Posted August 9, 2011 Jesli serwis, to chyba "restart". Opcja "reload" jest dla programu. Nie znam sie, ale tak wnioskuje z "man dovecot" i helpów. [root@VBOX-F15 ~]# dovecot --help Usage: dovecot [-F] [-c <config file>] [-p] [-n] [-a] [--help] [--version] [--build-options] [reload] [stop] [root@VBOX-F15 ~]# service dovecot --help Usage: service < option > | --status-all | [ service_name [ command | --full-restart ] ] 1 Link to comment Share on other sites More sharing options...
aleksandro Posted August 9, 2011 Author Report Share Posted August 9, 2011 chyba jednak service, gdyż w fedorze 14 jak wpisałem komendę # service dovecot reload # to było jak poniżej: # service dovecot reload Reloading Dovecot Imap: [ OK ] Usage: /etc/init.d/dovecot {condrestart|try-restart|start|stop|restart|reload|force-reload|status} Link to comment Share on other sites More sharing options...
Guest Posted August 9, 2011 Report Share Posted August 9, 2011 Sam sobie udzieliles odpowiedzi, na przyklad: [marcin@localhost ~]$ su -c "/etc/init.d/ntpd restart" Password: Shutting down ntpd: [ OK ] Syncing time for ntpd: [ OK ] Starting ntpd: [ OK ] Link to comment Share on other sites More sharing options...
aleksandro Posted August 9, 2011 Author Report Share Posted August 9, 2011 tylko ze w fedorze 15, jak wykonam komende # service dovecot reload # to dostaje zwrotke jak ponizej: # service dovecot reload Reloading dovecot configuration (via systemctl): Failed to issue method call: Job type reload is not applicable for unit dovecot.service. [FAILED] w fedorze 14 ta opcja dzialala Link to comment Share on other sites More sharing options...
Guest Posted August 9, 2011 Report Share Posted August 9, 2011 No to teraz dziala w ten sposób: [marcin@localhost ~]$ su -c "/etc/init.d/ntpd reload" Password: Shutting down ntpd: [ OK ] Syncing time for ntpd: [ OK ] Starting ntpd: [ OK ] Failed to issue method call: Job type reload is not applicable for unit dovecot.service. "Nie udalo sie wykonac/ przeprowadzic wywolania. Czynnosc 'reload' nie jest odpowiednia dla dovecot.service." Tyle mojego lekko kulawego tlumaczenia .... Link to comment Share on other sites More sharing options...
aleksandro Posted August 9, 2011 Author Report Share Posted August 9, 2011 u mnie nie działa dalej... równiez usługa ntpd po wykonaniu opcji reload daje ten sam bład... service httpd da się reload-nąć czyli: # service httpd reload Reloading httpd configuration (via systemctl): [ OK ] su -c "/etc/init.d/dovecot reload" - to przecież wykonanie komendy "/etc/init.d/dovecot reload" dodatkowo z uprawnieniami root-a, tylko tyle. Link to comment Share on other sites More sharing options...
@WalDo Posted August 9, 2011 Report Share Posted August 9, 2011 Pamiętaj o zmianach jakie weszły wraz z F15 do obsługi serwisów (systemd) - może tu leży problem? Zrobiłem prosty test: w pliku /etc/init.d/dovecot tam gdzie jest "case" zmieniłem nazwę opcji z "reload)" na "rel)" i... [root@VBOX-F15 ~]# /etc/init.d/dovecot rel Ponowne wczytywanie Dovecot Imap: [ OK ] Warto zwrócić uwagę, że w ten sposób wykonałem reload serwisu stara metodą, czyli nie przez systemctl, bo przez systemctl nadal jest [root@VBOX-F15 ~]# systemctl reload dovecot.service Failed to issue method call: Job type reload is not applicable for unit dovecot.service. Link to comment Share on other sites More sharing options...
aleksandro Posted August 9, 2011 Author Report Share Posted August 9, 2011 dzieki bardzo za pomoc :-) na razie zrobie to tak jak pisales, bo rzeczywiscie dziala. A trzeba sie bedzie temu blizej przyjrzec ;-). Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now