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

Title: Question to services
Post 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
Title: Re: Question to services
Post by: Jean-Philippe Pialasse on October 30, 2019, 12:08:43 AM
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.
Title: Re: Question to services
Post by: SchulzStefan on October 30, 2019, 09:33:27 AM
It's more this: --> 'imap(s)' is not a valid service name

# service imap restart --> 'imap' is not a valid service name

Quote
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)?
Title: Re: Question to services
Post by: ReetP on October 30, 2019, 11:03:10 AM
Wiki may need amending.

Code: [Select]
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:

Code: [Select]
netstat -tulpn|grep 993tcp        0      0 0.0.0.0:993                 0.0.0.0:*                   LISTEN      18777/dovecot

Code: [Select]
netstat -tulpn|grep 143tcp        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)
Title: Re: Question to services
Post by: SchulzStefan on October 30, 2019, 10:26:37 PM
ReetP

thank you for pointing this out.

regards,
stefan
Title: Re: Question to services
Post by: ReetP on October 30, 2019, 11:16:09 PM
thank you for pointing this out.

:thumbsup:

:-)