Jump to content

Dovecot / Fedora 15


aleksandro
 Share

Recommended Posts

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 :-)

  • Downvote 1
Link to comment
Share on other sites

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 ] ]

  • Downvote 1
Link to comment
Share on other sites

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

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

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

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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...