Koozali.org: home of the SME Server

Service control without Services Panel Contrib?

paulmancan2

Service control without Services Panel Contrib?
« on: August 10, 2004, 10:16:35 PM »
I would like to disable the smtpfront-qmail service(while leaving qmail.) The great contrib that allows enabling/disabling services controls both concurrently however.

Any help on how to do this manually would be appreciated.

I see these entries in my logfile but not sure where to go from here. Thanks for any help!

/home/e-smith/configuration: OLD smtpfront-qmail=service|access|public|status|enabled

/home/e-smith/configuration: NEW smtpfront-qmail=service|access|public|status|disabled

paulmancan2

Service control without Services Panel Contrib?
« Reply #1 on: August 10, 2004, 11:50:05 PM »
I'm thinking the following should do the trick?

/sbin/e-smith/db configuration setprop smtpfront-qmail status disabled

/sbin/e-smith/signal-event console-save

Offline raem

  • *
  • 3,972
  • +4/-0
Service control without Services Panel Contrib?
« Reply #2 on: August 11, 2004, 11:39:27 AM »
Try
/sbin/e-smith/db configuration set smtpfront-qmail service status disabled
/sbin/e-smith/signal-event email-update

Disabling smtpfront-qmail will stop your email
...

paulmancan2

Service control without Services Panel Contrib?
« Reply #3 on: August 11, 2004, 07:28:03 PM »
Thanks Ray... whats the difference between SET and SETPROP?

I can still send outgoing mail without smptpfront-qmail running, which is all I want to be able to do :)

Offline raem

  • *
  • 3,972
  • +4/-0
Service control without Services Panel Contrib?
« Reply #4 on: August 11, 2004, 07:39:29 PM »
Why do you want to disable smtpfront-qmail, it does some useful things for outgoing mail (& incoming) eg spam (RBL) & virus (pattern matching) filtering

One sets a key, one sets a key property
See
/sbin/e-smith/db configuration
usage:
    /sbin/e-smith/db dbfile keys
    /sbin/e-smith/db dbfile print [key]
    /sbin/e-smith/db dbfile show [key]
    /sbin/e-smith/db dbfile get key
    /sbin/e-smith/db dbfile set key type [prop1 val1] [prop2 val2] ...
    /sbin/e-smith/db dbfile setdefault key type [prop1 val1] [prop2 val2] ...
    /sbin/e-smith/db dbfile delete key
    /sbin/e-smith/db dbfile printtype [key]
    /sbin/e-smith/db dbfile gettype key
    /sbin/e-smith/db dbfile settype key type
    /sbin/e-smith/db dbfile printprop key [prop1] [prop2] [prop3] ...
    /sbin/e-smith/db dbfile getprop key prop
    /sbin/e-smith/db dbfile setprop key prop1 val1 [prop2 val2] [prop3 val3] ...
    /sbin/e-smith/db dbfile delprop key prop1 [prop2] [prop3] ...
...

paulmancan2

Service control without Services Panel Contrib?
« Reply #5 on: August 11, 2004, 07:51:00 PM »
I want to disable it out of the principal of disabling any service that is not used LOL.

The only e-mail functionality I use this box for is admin alerts and some mail sent by php scripts. I previously had qmail disabled completely.

I will read up on key/prop stuff but without understanding it off the bat, the setprop did indeed work...

Thanks again!