Hi,

I'm not very familiar with changes made to Debian, so I can't really help you 
more than that. But you can try this script, taken from the old .deb package : 
https://gist.github.com/lcharette/9043944


  - Louis

Le 2014-02-14 à 04:07, jlatx <[email protected]> a écrit :

> Hi Louis,
> 
> Sorry, but the official init.d file doesn't work.
> I have to change 
>> # Source function library.
>> . /etc/init.d/functions
> 
>          to
>> # Source function library.
>> . /lib/lsb/init-functions
> In order to avoid error (in my Debian there is no 'functions' file in init.d 
> directory).
> No PIDFILE is created as daemon launch, even if file is set in '/tmp' 
> directory (where everyone has write access).
> Strange...
> 
> Thanx for your help,
> Cheers
> 
> 
> On Tuesday, February 11, 2014 8:01:25 PM UTC+1, Louis Charette wrote:
> Have a look at this Gist: https://gist.github.com/Jonathonbyrd/2942151
> 
> I can probably send the << official one >> if the previous one doesn't work 
> for your system.
> 
>   - Louis
> 
> 
> Le 2014-02-11 à 12:54, jlatx <[email protected]> a écrit :
> 
>> Hi everyone,
>> 
>> aped is working on my Debian Squeeze server. All ape-jsf tests OK.
>> But I was not able to make a correct '/etc/init.d/aped' file in order to 
>> launch daemon at boot time.
>> 
>> Here is my (-rwxr-xr-x) root:root '/etc/init.d/aped' source file:
>> 
>> #! /bin/sh
>> ### BEGIN INIT INFO
>> # Provides:          ape
>> # Required-Start:    $remote_fs $syslog $network
>> # Required-Stop:     $remote_fs $syslog $network
>> # Default-Start:     2 3 4 5
>> # Default-Stop:      0 1 6
>> # Short-Description: ape
>> # Description:       Enable Ajax Push Engine service for real-time web 
>> services
>> ### END INIT INFO
>> # /etc/init.d/aped
>> #
>> # chkconfig: 2345 85 15
>> # description: APE Daemon
>> # processname: APE Daemon
>> #
>> # Install the service with chkconfig --add aped
>> #
>> # Define where ape is installed.
>> # The trailing slash is required ( Example : /my/path/bin/ )
>> APE_DIRECTORY=/usr/local/ape/bin/
>> 
>> # Define the PID File
>> PIDFILE=/var/run/aped.pid
>> 
>> # Source function library.
>> . /lib/lsb/init-functions
>> 
>> DAEMON="${APE_DIRECTORY}aped --cfg ${APE_DIRECTORY}ape.conf > /dev/null"
>> 
>> start() {
>> 
>>         echo -n "Starting APE... "
>> 
>>         cd $APE_DIRECTORY;
>>         daemon $DAEMON
>>         RETVAL=$?
>>         echo
>>         [ $RETVAL = 0 ] && touch /var/lock/subsys/aped
>>         return $RETVAL
>> }
>> 
>> stop() {
>>         echo "Stopping APE..."
>>         kill `cat /var/run/aped.pid`
>>         RETVAL=$?
>>         echo
>>         [ $RETVAL = 0 ] && rm -f /var/lock/subsys/aped
>> }
>> 
>> case "$1" in
>>     start)
>>         start
>>         ;;
>>     stop)
>>         stop
>>         ;;
>>     restart)
>>         stop
>>         start
>>         ;;
>>     *)
>>         echo "Usage:  {start|stop|restart}"
>>         exit 1
>>         ;;
>> esac
>> exit $RETVAL
>> 
>> I have changed 'source function library' in order to avoid file not found 
>> error on Debian Squeeze, and Installed file with 'update-rc.d aped defaults' 
>> terminal command. But when I issue 'service aped start' terminal command, I 
>> get the following error :
>> Starting APE... /etc/init.d/aped: 66: daemon: not found
>> 
>> One other thing is that if I launch ape daemon manually (./aped &) no 
>> PIDFILE is created.
>> Looking into bin/ape.log file, tells '2014-02-11 18:03:34 - src/entry.c:188 
>> - APE starting up - pid : 10953' which is the correct PID number.
>> But no PIDFILE created by the daemon whatever directory set in DAEMON 
>> variable.
>> 
>> Any idea ?
>> Thanx for your help
>> Cheers
>> 
>> -- 
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "APE Project" group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]
>> For more options, visit this group at
>> http://groups.google.com/group/ape-project?hl=en
>> ---
>> APE Project (Ajax Push Engine)
>> Official website : http://www.ape-project.org/
>> Git Hub : http://github.com/APE-Project/
>>  
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "APE Project" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected].
>> For more options, visit https://groups.google.com/groups/opt_out.
> 
> 
> -- 
> -- 
> You received this message because you are subscribed to the Google
> Groups "APE Project" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/ape-project?hl=en
> ---
> APE Project (Ajax Push Engine)
> Official website : http://www.ape-project.org/
> Git Hub : http://github.com/APE-Project/
>  
> --- 
> You received this message because you are subscribed to the Google Groups 
> "APE Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
-- 
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/

--- 
You received this message because you are subscribed to the Google Groups "APE 
Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to