LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 09-07-2006, 08:21 AM   #1
tstuart
LQ Newbie
 
Registered: Sep 2006
Posts: 16

Rep: Reputation: 0
Starting services


I'm trying to get openswan to work. My next step says to run "service ipsec start"
When I try this I get:
service: command not found

I am doing this as root. I went to root doing su -
I also did a whereis service and it could not find it. This is normally located in sbin from what I've been reading. Is there something I need to install? I'm running Kubuntu...


Regards,

Trevor
 
Old 09-07-2006, 08:30 AM   #2
tstuart
LQ Newbie
 
Registered: Sep 2006
Posts: 16

Original Poster
Rep: Reputation: 0
In addition to what I've already put in I just checked and initscripts is installed, but for some reason doesn't contian /sbin/service
 
Old 09-07-2006, 08:40 AM   #3
zulfilee
Member
 
Registered: Apr 2004
Location: India
Distribution: Redhat,Fedora
Posts: 430

Rep: Reputation: 39
I dont know about Kubuntu but services can also be started this way

/etc/init.d/servicename start

So for you it will be

/etc/init.d/ipsec start


And /sbin/service comes as a part of initscripts package.
So you can check if the package is installed in your PC.
 
Old 09-07-2006, 08:51 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 12,059

Rep: Reputation: 759Reputation: 759Reputation: 759Reputation: 759Reputation: 759Reputation: 759Reputation: 759
service is not included in all distributions. kubuntu is based on debian which does not use the service command.

Use instead:
/etc/init.d/ipsec start
 
Old 09-07-2006, 08:59 AM   #5
tstuart
LQ Newbie
 
Registered: Sep 2006
Posts: 16

Original Poster
Rep: Reputation: 0
that's excatly what I needed! Thanks for all your help!
 
Old 09-07-2006, 09:05 AM   #6
sseeker
Member
 
Registered: Aug 2006
Distribution: CentOS 5
Posts: 48

Rep: Reputation: 15
What distro do you use?
Red Hat you just go
Applications > System Settings > Services > httpd > Start

Done.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Starting different services at boot mjjzf Slackware 2 05-21-2005 02:46 PM
Services not starting in runlevel 3 JesusAddict3791 Linux - Newbie 4 04-26-2005 01:49 AM
Starting Services InEeDhElPlInUx Linux - Newbie 9 11-06-2003 12:57 PM
starting services in Suse 8.2? rje_NC Linux - Software 1 06-28-2003 02:35 AM
stopping and starting services nero64 Linux - Newbie 3 11-13-2002 02:10 AM


All times are GMT -5. The time now is 08:59 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration