Koozali.org: home of the SME Server
Obsolete Releases => SME Server 9.x => Topic started by: SchulzStefan on October 26, 2019, 11:01:31 AM
-
While doing:
SVC='qpsmtpd sqpsmtpd crond pop3 dovecot pop3s ftp httpd-e-smith atalk smb qmail'
for s in $SVC; do service $s stop; done
brings up:
Stopping qpsmtpd: [ OK ]
Stopping sqpsmtpd: [ OK ]
crond beenden: [ OK ]
'imap' is not a valid service name
Stopping pop3: [ OK ]
'imaps' is not a valid service name
Stopping pop3s: [ OK ]
Stopping ftp: [ OK ]
Stopping httpd-e-smith: [ OK ]
'atalk' is not a valid service name
Stopping nmbd: [ OK ]
Stopping smbd: [ OK ]
Stopping qmail: [ OK ]
and reverse:
Starting qpsmtpd: [ OK ]
Starting sqpsmtpd: [ OK ]
crond starten: [ OK ]
'imap' is not a valid service name
pop3 starten: [ OFF ]
'imaps' is not a valid service name
pop3s starten: [ OFF ]
Starting ftp: [ OK ]
Starting httpd-e-smith: [ OK ]
'atalk' is not a valid service name
Starting nmbd: [ OK ]
Starting smbd: [ OK ]
Starting qmail: [ OK ]
Afaik pop3 and atalk are not used on this server.
What's wrong? Should I open a bug?
regards,
stefan
-
Off means the service is disabled in e-smith config db
For atalk, my guess is you take this script from an old sme and just tried it on a sme9. There is no more atalk service.
-
It's more this: --> 'imap(s)' is not a valid service name
# service imap restart --> 'imap' is not a valid service name
SVC='qpsmtpd sqpsmtpd crond pop3 dovecot pop3s ftp httpd-e-smith atalk smb qmail'
for s in $SVC; do service $s stop; done
is taken from https://wiki.contribs.org/Moving_SME_to_new_Hardware
I read bug https://bugs.contribs.org/show_bug.cgi?id=9672 but I don't know, if this is related.
Assuming I want to backup my production server, what's the best way to stop imap(s) (all services)?
-
Wiki may need amending.
SVC='qpsmtpd sqpsmtpd crond pop3 dovecot pop3s ftp httpd-e-smith atalk smb qmail'
That's for moving from SME v8 to v9 so you should just remove atalk
Imap
So which service runs imap? With a little detective work we can work this out ourselves:
netstat -tulpn|grep 993
tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN 18777/dovecot
netstat -tulpn|grep 143
tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 18777/dovecot
So stopping dovecot should stop the imap services.
For other service have a look in the /service directory.
(the bug you referred to is only really relevant to SME v10)
-
ReetP
thank you for pointing this out.
regards,
stefan
-
thank you for pointing this out.
:thumbsup:
:-)