WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [solved] Starting service from ondemand  (Read 1465 times)

Offline uggla

  • Sr. Member
  • ****
  • Posts: 438
[solved] Starting service from ondemand
« on: October 06, 2010, 02:26:48 AM »
I want to start cups from an ondemand item. I've added the following line but it doesn't work:
[ $(which cups) ] && exec sudo /etc/init.d/cups start
Could someone please give me the right syntax?

regards
/Uggla
« Last Edit: October 06, 2010, 08:26:49 AM by uggla »

Offline uggla

  • Sr. Member
  • ****
  • Posts: 438
Re: Starting service from ondemand
« Reply #1 on: October 06, 2010, 08:26:15 AM »
Nevermind. I wasn't understanding the purpose of the [ $(which cups) ]. I checked it up and and found that I should remove it to make it work.

/Uggla

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: [solved] Starting service from ondemand
« Reply #2 on: October 06, 2010, 08:50:45 AM »
..and it also depends on the version of the cups extension you use - for cups.tcz, that would be /usr/local/etc/init.d/cups start

..or you could use the services right-click menu item to start cups