Hi David,
Unfortunately it's not that simple:

On Sat, Nov 11, 2006 at 11:20:43PM -0800, David Liontooth wrote:
> There are a number of reports that say smartmontools fails to start on 
> installation or upgrade. Even if /etc/default/smartmontools is set to run 
> smartd, this happens:
> 
> # wajig install smartmontools_5.37~cvs20061002-1_amd64.deb
> Selecting previously deselected package smartmontools.
This indicates that smartmontools isn't even installed, so how can it be
running? If you're running a self compiled version the maintainer
scripts can't do very much about it.

> (Reading database ... 50125 files and directories currently installed.)
> Unpacking smartmontools (from smartmontools_5.37~cvs20061002-1_amd64.deb) ...
> Setting up smartmontools (5.37~cvs20061002-1) ...
> 
> Configuration file `/etc/default/smartmontools'
>  ==> File on system created by you or by a script.
>  ==> File also in package provided by package maintainer.
>    What would you like to do about it ?  Your options are:
>     Y or I  : install the package maintainer's version
>     N or O  : keep your currently-installed version
>       D     : show the differences between the versions
>       Z     : background this process to examine the situation
>  The default action is to keep your current version.
> *** smartmontools (Y/I/N/O/D/Z) [default=N] ?
Is This from a left over smartmontools installation?

> Starting S.M.A.R.T. daemon: smartd failed!
> invoke-rc.d: initscript smartmontools, action "start" failed.
> dpkg: error processing smartmontools (--install):
>  subprocess post-installation script returned error exit status 1
> Errors were encountered while processing:
>  smartmontools
> 
> The reason is simply that smartd is already running, and all that's needed is 
> a restart.
> I imagine there's a standard way to handle this? Check if it's running and do 
> a restart if it is?
Again: how can the daemon be running, when the package isn't even
installed? The packages prerm script is supposed to stop the daemon but
this *can't* run if the package isn't even installed. Where does the
running smartd come from?
Cheers,
 -- Guido


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to