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

 


Dernière réponse
Sujet : [Mac OS X] Comment redemarrer un service ?
The_Real_Patate 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


Votre réponse
Nom d'utilisateur    Pour poster, vous devez être inscrit sur ce forum .... si ce n'est pas le cas, cliquez ici !
Le ton de votre message                        
                       
Votre réponse


[b][i][u][strike][spoiler][fixed][cpp][url][email][img][*]   
 
   [quote]
 

Options

 
Vous avez perdu votre mot de passe ?


Vue Rapide de la discussion
The_Real_Patate 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

The_Real_Patate 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:
zzsurf sous OS X c'est dans /System/Library/StartupItems/tonservices restart
de memoire
The_Real_Patate UP
The_Real_Patate 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:

Copyright © 1997-2025 Groupe LDLC (Signaler un contenu illicite / Données personnelles)