Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1754 connectés 

  FORUM HardWare.fr
  Linux et OS Alternatifs

  [Mac OS X] Comment redemarrer un service ?

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

[Mac OS X] Comment redemarrer un service ?

n°660967
The_Real_P​atate
Posté le 09-04-2005 à 15:37:14  profilanswer
 

Bonjour,
 
Une petite question bete : comment peut on redémarrer un service sous OSX ?
 
Un peu comme sous Linux avec /etc/init.d/service restart ?
 
Merci  :hello:


Message édité par The_Real_Patate le 09-04-2005 à 15:37:39
mood
Publicité
Posté le 09-04-2005 à 15:37:14  profilanswer
 

n°661404
The_Real_P​atate
Posté le 10-04-2005 à 17:31:39  profilanswer
 

UP

n°661444
zzsurf
Posté le 10-04-2005 à 19:29:01  profilanswer
 

sous OS X c'est dans /System/Library/StartupItems/tonservices restart
de memoire


Message édité par zzsurf le 10-04-2005 à 19:30:12
n°661452
The_Real_P​atate
Posté le 10-04-2005 à 19:57:08  profilanswer
 

Merci, ca a l'air d'etre ca, mais c'est :
 
/System/Library/StartupItems/dossier de ton service/tonservices restart  
 
Par contre c'est bizarre, je ne trouve pas le service Samba par exemple. C'est embetant quand on est en SSH  et qu'on a pas accès à l'interface graphique.
 
Je continue ma recherche.
 
Merci encore  :hello:

n°661455
The_Real_P​atate
Posté le 10-04-2005 à 20:01:47  profilanswer
 

Bon ben j'ai trouvé :  
 

Citation :

Figure 2-4. Mac OS X sharing preferences
 
 
If you decide to install Samba yourself on Mac OS X, it's best not to stomp on the installation provided with the OS. Use the procedures detailed earlier in this chapter to install the software into /usr/local/samba or some other area unaffected by OS upgrades. (Remember to set up users with smbpasswd if you're using encrypted passwords, as described earlier in this chapter. This step is handled automatically with entries in /var/db/samba/hash if you're using the built-in server on Mac OS X.) Once you've got that working, you can edit the Samba startup item script to refer to your installation, like this:
 
    #!/bin/sh
    # Start Samba
 
    . /etc/rc.common
 
    if [ "${SMBSERVER:=-NO-}" = "-YES-" ]; then
        ConsoleMessage "Starting SMB server"
 
        if [ -f /usr/local/samba/lib/smb.conf ]; then
            /usr/local/samba/bin/smbd -D
            /usr/local/samba/bin/nmbd -D
        fi
    fi
 
 
However, beware of OS updates, which can wipe out your changes. One solution is to make the script immutable, like this:
 
# chflags uchg /System/Library/StartupItems/Samba/Samba


 
Source : http://www.faqs.org/docs/samba/ch02.html


Message édité par The_Real_Patate le 10-04-2005 à 20:02:15

Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Linux et OS Alternatifs

  [Mac OS X] Comment redemarrer un service ?

 

Sujets relatifs
Cherche sons system de Mac a telechargerKernel panic quand je stop le service Lotus Domino via un script
arreter ou redemarrer debian ????Visio Mac OS 10 et mandrake 10.1
Barre MAC OS sous KDE (Comment Désactiver)fusion Mac-linux
[MAC] Ajouter une route IP manuellementPeer to Peer sous Mac ???
Installation Mandrake, impossible de redemarrer!!!Serveur de fichiers pour réseau MAC et PC
Plus de sujets relatifs à : [Mac OS X] Comment redemarrer un service ?


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR