Running Squeak as a Linux service

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Running Squeak as a Linux service

Noury Bouraqadi
Hi,

I have a Swiki on a machine and I want to make it run as a linux  
service and be able to start it and stop it from the OS. Any hint?

Thanks,
Noury
------------------------------------------------------------------
Dr. Noury Bouraqadi - Enseignant/Chercheur
ARMINES - Ecole des Mines de Douai - Dept. I.A.
http://csl.ensm-douai.fr/noury

European Smalltalk Users Group Board
http://www.esug.org
------------------------------------------------------------------




Reply | Threaded
Open this post in threaded view
|

Re: Running Squeak as a Linux service

Göran Krampe
Hi!

Noury Bouraqadi <[hidden email]> wrote:
> Hi,
>
> I have a Swiki on a machine and I want to make it run as a linux  
> service and be able to start it and stop it from the OS. Any hint?

Sure. :) If it is a Debian box I can send you an /etc/init.d script.
But you can also use daemontools, should be available for all distros I
guess:

        http://cr.yp.to/daemontools.html

We use daemontools for squeak.org so there are several Squeakers who
know how it works.

regards, Göran

Reply | Threaded
Open this post in threaded view
|

Re: Running Squeak as a Linux service

Milan Zimmermann-2
In reply to this post by Noury Bouraqadi
Noury,

I am not sure this is relevant, but I think people who run HTTP server from
Squeak (e.g. for Seaside) often have the same situation (although perhaps
with different arguments for Swiki). I run HTTP server with the 2 attached
scripts. It is really unnecesarily complicated, as I wanted to use the same
core to run both as service as well as manually as non-superuser, but you can
use the idea. Or use any file in /etc/init.d on your distro as example. The
squeak_http is the service (borrowed from SuSE, this should be
in /etc/init.d, and it "calls" the squeak_http service which is the core, and
could be merged inline).

Depending on the distro, each handles services a bit differently, but this
should run on any distro that is Linux Standard Base compliant (many of them
are). If you modify the paths referring to my system (look for mzimmerm) and  
put the squeak_http to /etc/init.d, and run as superuser
        cd  /etc/init.d/
        chkconfig  --add squeak_http # adds service to run levels
        ./http_service start #starts service
that should work.

Milan

On 2007 January 19 01:55, Noury Bouraqadi wrote:

> Hi,
>
> I have a Swiki on a machine and I want to make it run as a linux
> service and be able to start it and stop it from the OS. Any hint?
>
> Thanks,
> Noury
> ------------------------------------------------------------------
> Dr. Noury Bouraqadi - Enseignant/Chercheur
> ARMINES - Ecole des Mines de Douai - Dept. I.A.
> http://csl.ensm-douai.fr/noury
>
> European Smalltalk Users Group Board
> http://www.esug.org
> ------------------------------------------------------------------



squeak_http (9K) Download Attachment
squeak_http_service (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Running Squeak as a Linux service

Giovanni Corriga
In reply to this post by Göran Krampe
Il giorno ven, 19/01/2007 alle 08.30 +0200, [hidden email] ha scritto:

> Hi!
>
> Noury Bouraqadi <[hidden email]> wrote:
> > Hi,
> >
> > I have a Swiki on a machine and I want to make it run as a linux  
> > service and be able to start it and stop it from the OS. Any hint?
>
> Sure. :) If it is a Debian box I can send you an /etc/init.d script.
> But you can also use daemontools, should be available for all distros I
> guess:
>
> http://cr.yp.to/daemontools.html
>
> We use daemontools for squeak.org so there are several Squeakers who
> know how it works.

On the Swiki swiki ( http://wiki.squeak.org/swiki ) there are a couple
of examples of init.d scripts, too.

        Giovanni


Reply | Threaded
Open this post in threaded view
|

Re: Running Squeak as a Linux service

Noury Bouraqadi
Thanks to all of you for your quick answers.

Noury
Le 19 janv. 07 à 13:06, Giovanni Corriga a écrit :

> Il giorno ven, 19/01/2007 alle 08.30 +0200, [hidden email] ha  
> scritto:
>> Hi!
>>
>> Noury Bouraqadi <[hidden email]> wrote:
>>> Hi,
>>>
>>> I have a Swiki on a machine and I want to make it run as a linux
>>> service and be able to start it and stop it from the OS. Any hint?
>>
>> Sure. :) If it is a Debian box I can send you an /etc/init.d script.
>> But you can also use daemontools, should be available for all  
>> distros I
>> guess:
>>
>> http://cr.yp.to/daemontools.html
>>
>> We use daemontools for squeak.org so there are several Squeakers who
>> know how it works.
>
> On the Swiki swiki ( http://wiki.squeak.org/swiki ) there are a couple
> of examples of init.d scripts, too.
>
> Giovanni
>
>

------------------------------------------------------------------
Dr. Noury Bouraqadi - Enseignant/Chercheur
ARMINES - Ecole des Mines de Douai - Dept. I.A.
http://csl.ensm-douai.fr/noury

European Smalltalk Users Group Board
http://www.esug.org
------------------------------------------------------------------




Reply | Threaded
Open this post in threaded view
|

Re: Running Squeak as a Linux service

Brad Fuller-3
In reply to this post by Göran Krampe
[hidden email] wrote:

> Hi!
>
> Noury Bouraqadi <[hidden email]> wrote:
>> Hi,
>>
>> I have a Swiki on a machine and I want to make it run as a linux  
>> service and be able to start it and stop it from the OS. Any hint?
>
> Sure. :) If it is a Debian box I can send you an /etc/init.d script.
> But you can also use daemontools, should be available for all distros I
> guess:
>
> http://cr.yp.to/daemontools.html
>
> We use daemontools for squeak.org so there are several Squeakers who
> know how it works.

+1 for daemontools. It's a god send and the instructions are clear on
the site.


--
brad fuller
www.bradfuller.com