Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.3: Start and stop services from the command line UNIX
10.3 added a shell script to control services from the command line; here's how i found out -- a message on an Apple mailing list. To summarize what was said, just type:
 % sudo /sbin/service ssh start
To see the script, type less /sbin/service. Or type /sbin/service --list for a list of available services. The service script will do all the right things for you.
    •    
  • Currently 2.00 / 5
  You rated: 3 / 5 (6 votes cast)
 
[45,741 views]  

10.3: Start and stop services from the command line | 4 comments | Create New Account
Click here to return to the '10.3: Start and stop services from the command line' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Also in Jaguar
Authored by: MacAsylum on Nov 28, '03 03:57:00AM
[ti:/sbin] root# uname -sr
Darwin 6.8
[ti:/sbin] root# ls
SystemStarter*  fsck*        md5*           mount_msdos*    nfsd*        routed*
autodiskmount*  fsck_hfs*    mknod*         mount_nfs*      nfsiod*      rrestore*
badsect*        fsck_msdos*  mount*         mount_smbfs*    nologin*     rtsol*
clri*           halt*        mount_afp*     mount_synthfs*  ping*        service*
dmesg*          ifconfig*    mount_cd9660*  mount_udf*      ping6*       shutdown*
dump*           init*        mount_cddafs*  mount_volfs*    quotacheck*  slattach*
dumpfs*         ipfw*        mount_devfs*   mount_webdav*   rdump*       tunefs*
dynamic_pager*  kextload*    mount_fdesc*   newfs*          reboot*      umount*
fastboot*       kextunload*  mount_ftp@     newfs_hfs*      restore*
fasthalt*       mach_init*   mount_hfs*     newfs_msdos*    route*

---
~8]

[ Reply to This | # ]

Also in Jaguar
Authored by: sjk on Nov 28, '03 09:17:57PM

Yep, it's a utility from the xinetd distribution.



[ Reply to This | # ]
10.3: Start and stop services from the command line
Authored by: seika7 on Jun 08, '04 08:10:44PM

Is there an easy way to start/stop File Sharing (afp) from the command line?



[ Reply to This | # ]
10.3: Start and stop services from the command line
Authored by: macvienna on Dec 13, '04 08:37:43PM

To start file sharing from the terminal do the following:

cd /usr/sbin
./AppleFileServer

from http://www.macosxhints.com/article.php?story=20010511042701566



[ Reply to This | # ]