LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 07: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, 07: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, 07: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, 07:51 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
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, 07: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, 08: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



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 01:46 PM
Services not starting in runlevel 3 JesusAddict3791 Linux - Newbie 4 04-26-2005 12:49 AM
Starting Services InEeDhElPlInUx Linux - Newbie 9 11-06-2003 11:57 AM
starting services in Suse 8.2? rje_NC Linux - Software 1 06-28-2003 01:35 AM
stopping and starting services nero64 Linux - Newbie 3 11-13-2002 01:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:14 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration