That's a solution if you never want the restarting service on a specific service
but what if you have to shut down something pretty fast
date;perl -pi -e 's/exim=ON/exim=OFF/' /usr/local/directadmin/data/admin/services.status;service exim stop;date
Tue Jan 6 12:36:53 EST 2009
Shutting down exim:
Tue Jan 6 12:36:53 EST 2009
The nicest thing would be that when you stop a service from DA the restarting service stays deactivated until you start it back.
The nicest thing would be that when you stop a service from DA the restarting service stays deactivated until you start it back.
scsi is right. I just tried it and it does set the particular service to OFF in /usr/local/directadmin/data/admin/services.status