[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: init scripts macros for openssh alternative

Hah ; I was just contemplating a very similar

I have an rpm that depends on a mysql server.

my currently hacked version does this

/etc/rc.d/ini.d/mysql start

what I'm wondering is what do I put in %post ?

should I really grep the filenames to be found
in :


and see if it should be stopped ?

is there possibly a way to remember if mysql
was running in the first place ?

if [ ! -f /var/lock/subsys/mysqld ]
   must_stop_mysql = TRUE


anything to add to the thoughtpool
would be apreciated ;)


Robin Mordasiewicz wrote:
> I am trying to create a new rpm for openssh.
> In the spec file I specify to kill the daemon if it is already running and
> then to start the daemon after install using the /etc/init.d/sshd script.
> The problem is that even though I get a messsage saying that ssh starts it
> does not actually run.
> Is there a macro for use with installing/upgrading daemons that you want
> to kill the old daeon and re-start the new one.
> _______________________________________________
> Rpm-list mailing list
> Rpm-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/rpm-list

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []