Shairport

Request a package to be made here. Make sure you have searched before requesting.

Re: Shairport

Postby pepedog » Fri Sep 02, 2011 2:46 pm

avahi-daemon has its own rc.d script and should be already running.
Just the advertising should happen with shairport
Want to post your /etc/rc.d/shairport file?
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Shairport

Postby xoxox » Fri Sep 02, 2011 3:05 pm

Here is the script, nothing special:

$this->bbcode_second_pass_code('', '#!/bin/bash

daemon_name=shairport.pl

. /etc/rc.conf
. /etc/rc.d/functions

get_pid() {
pidof -o %PPID $daemon_name
}

case "$1" in
start)
stat_busy "Starting $daemon_name daemon"

PID=$(get_pid)
if [[ -z $PID ]]; then
[[ -f /var/run/$daemon_name.pid ]] &&
rm -f /var/run/$daemon_name.pid
# RUN
$daemon_name
#
if [[ $? -gt 0 ]]; then
stat_fail
exit 1
else
echo $(get_pid) > /var/run/$daemon_name.pid
add_daemon $daemon_name
stat_done
fi')

Thanks for your help
xoxox
 
Posts: 8
Joined: Sun Jul 31, 2011 8:41 am

Re: Shairport

Postby pepedog » Fri Sep 02, 2011 4:42 pm

#RUN
$daemon_name -d
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Shairport

Postby xoxox » Fri Sep 02, 2011 4:52 pm

With "$daemon_name -d" the perl script goes in the background.
The shell prompt is visible for ~2s, then the notification "Established under name '0031DB6833AD@ShairPort 19996 on Sheeva'" pops up and stays in the foreground. (Same behaviour as when i start the perl script manually).

It's the avahi-publish-service which seemed to be started from the perl script.
xoxox
 
Posts: 8
Joined: Sun Jul 31, 2011 8:41 am

Re: Shairport

Postby pepedog » Fri Sep 02, 2011 4:57 pm

Have you looked on https://github.com/albertz/shairport
Think you might have post for help there
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Previous

Return to Package Requests

Who is online

Users browsing this forum: No registered users and 5 guests