Welcome to the Hamachi Community!
New Contributor
Posts: 1
Registered: ‎06-02-2009

Problems at startup on Mandriva


I installed Hamachi on Mandriva and made it starting up with the system:


 cp /home/[MyUserName]/software/hamachi- /etc/init.d/


 # chmod +x /etc/init.d/hamachi


 # chkconfig --add hamachi


When the system starts up I can see that Hamachi is connected but I can't connect to my addres in fact (I do it from another Windows machine) and this address is not pingable though the address is marked with green star. From Mandriva I can't connect to the Windows machine as well. When I try to perform:

 # hamachi start

I receive an info that hamachi is already stated. When I try to perform:

# hamachi list


# hamachi login 

I receive info: Hamachi does not seem to be running. Have you run "hamachi start"?


Where is the problem? Firewalls are turned off on both machines. I'd be very gratefull if someone could help me with this issue.




Below is a full /home/[MyUserName]/software/hamachi- file (MyUserName I replaced with my real user name off course)



# Hamachi startup script
# Original contributor post found at http://forums.hamachi.cc/viewtopic.php?t=3421
# Provides: VPN Connection
# Default-Start: 3 4 5
# Short-Description: Starts the hamachi VPN daemon
# Description: Hamachi VPN zero-configuration client/server.

hamachi_start() {
echo "Starting hamachi..."
/usr/bin/hamachi -c /home/[YourUserName]/.hamachi start
/bin/chmod 760 /var/run/tuncfg.sock
/bin/chgrp [YourUserName] /var/run/tuncfg.sock

hamachi_stop() {
echo "Stopping hamachi..."
killall tuncfg
/usr/bin/hamachi -c /home/[YourUserName]/.hamachi stop

hamachi_restart() {
sleep 1

case "$1" in
Active Contributor
Posts: 4
Registered: ‎07-27-2009

Re: Problems at startup on Mandriva

Have you tried hamachi login / list etc as root?


This is the init script I use on CentOS 5


#!/bin/bash # # hamachi Startup script for the Hamachi # # chkconfig: - 91 35 # description: Starts and stops the Haachi Service # # Version 1.20 Jono Woodhouse 18 August 2006 # Copyright (c) 2006 CapeSoft Software (Pty) Ltd # Use a own Risk # Permission is granted to use this script # # install with: # chkconfig --add hamachi # chkconfig --level 345 hamachi on # chkconfig --list hamachi # # RETVAL=0 # start() { tuncfg hamachi -c /root/.hamachi start hamachi -c /root/.hamachi login } stop() { hamachi -c /root/.hamachi logout hamachi -c /root/.hamachi stop } install() { chkconfig --add hamachi chkconfig --level 345 hamachi on chkconfig --list hamachi } status() { hamachi -c /root/.hamachi get-nicks sleep 3 hamachi -c /root/.hamachi list } # See how we were called. case "$1" in start) start ;; stop) stop ;; status) status ;; install) install ;; restart) stop start ;; *) echo $"Usage: $prog {start|stop|restart|status|install}" exit 1 esac exit $RETVAL