Koozali.org: home of the SME Server

Question to services

Offline SchulzStefan

  • *
  • 620
  • +0/-0
Question to services
« 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
And then one day you find ten years have got behind you.

Time, 1973
(Mason, Waters, Wright, Gilmour)

Offline Jean-Philippe Pialasse

  • *
  • 2,763
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Question to services
« Reply #1 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.

Offline SchulzStefan

  • *
  • 620
  • +0/-0
Re: Question to services
« Reply #2 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)?
And then one day you find ten years have got behind you.

Time, 1973
(Mason, Waters, Wright, Gilmour)

Offline ReetP

  • *
  • 3,734
  • +5/-0
Re: Question to services
« Reply #3 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)
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline SchulzStefan

  • *
  • 620
  • +0/-0
Re: Question to services
« Reply #4 on: October 30, 2019, 10:26:37 PM »
ReetP

thank you for pointing this out.

regards,
stefan
And then one day you find ten years have got behind you.

Time, 1973
(Mason, Waters, Wright, Gilmour)

Offline ReetP

  • *
  • 3,734
  • +5/-0
Re: Question to services
« Reply #5 on: October 30, 2019, 11:16:09 PM »
thank you for pointing this out.

:thumbsup:

:-)
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation