Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

Creating a service
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Creating a service
12th May, 2013, 06:07 AM
Post: #1
Jhinta Offline
Registered
Posts: 2
Joined: May 2013
Reputation: 0
Creating a service
i can see that i can create a service , but how ?
Find all posts by this user
Quote this message in a reply
12th May, 2013, 05:25 PM
Post: #2
wilcoo Offline
Registered
Posts: 6
Joined: Apr 2013
Reputation: 4
RE: Creating a service
Here some info

http://www.shayanderson.com/linux/add-startup-script-or-service-with-linux-on-bootup.htm
Find all posts by this user
Quote this message in a reply
12th May, 2013, 06:00 PM
Post: #3
belese Offline
Moderator
******
Posts: 650
Joined: Jan 2013
Reputation: 38
RE: Creating a service
or if you want to do a xbmc service,
here's one empty service :
.zip  service.test.zip (Size: 712 bytes / Downloads: 18)

you can install it by (settings->addons>install from zip file)
or unzip in /home/xbian/.xbmc/addons/

to change the name, edit addon.xml and edit id and name
your service code have to be in default.py

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
20th May, 2013, 08:40 PM
Post: #4
elcado Offline
Registered
Posts: 2
Joined: May 2013
Reputation: 0
RE: Creating a service
Hi,

what about the XBian's services ? I mean those listed by xbian-config... is it possible to add such service ?

Cad
Find all posts by this user
Quote this message in a reply
20th May, 2013, 08:58 PM
Post: #5
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: Creating a service
(20th May, 2013 08:40 PM)elcado Wrote:  Hi,

what about the XBian's services ? I mean those listed by xbian-config... is it possible to add such service ?

Cad

by editing https://github.com/xbianonpi/xbian-package-config-shell/blob/master/content/usr/local/include/xbian-config/config/services

(so /usr/local/include/xbian-config/config/services). feel free to request-pull the changes to apply for official xbian distro.

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
20th May, 2013, 09:02 PM
Post: #6
elcado Offline
Registered
Posts: 2
Joined: May 2013
Reputation: 0
RE: Creating a service
ok, I think I answered myself my question...

After having built my own init.d script service (actually a squeezeslave one following this blog post), I manually edited the "/usr/local/include/xbian-config/config/services" config file to add a line with my service name... and voila !

Cad
Find all posts by this user
Quote this message in a reply
20th May, 2013, 10:43 PM
Post: #7
belese Offline
Moderator
******
Posts: 650
Joined: Jan 2013
Reputation: 38
RE: Creating a service
ok, another way is
xbmc -> settings -> xbian -> service ->add custom service (advanced mode)
or via bash (... under service list)

it's not me that have do that,
but think in the name, you have to put the init script name, if process name is the same, nothing in daemon, otherwise process name(s) in deamon.

Belese

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 12th May, 2025, 05:07 PM Powered By MyBB, © 2002-2025 MyBB Group.