Forum Discussion

lferrari's avatar
lferrari
Active Contributor
11 months ago

Warning under Fedora 39 - systemd unit

I am now getting the following warning running Hamachi under Fedora 39   "SysV service '/etc/rc.d/init.d/logmein-hamachi' lacks a native systemd unit file. ~ Automatically generating a unit file fo...
  • lferrari's avatar
    9 months ago

    Found my answer.   

     

    https://github.com/second2050/logmein-hamachi-nix-companion

     

    Here's how I adapted it for Fedora.  My logmein-hamachi.service file follows:

     

    --

    [Unit]
    Description=LogMeIn Hamachi daemon (Fedora)
    After=local-fs.target network.target

    [Service]
    ExecStart=/opt/logmein-hamachi/bin/hamachid
    Type=forking

    [Install]
    WantedBy=multi-user.target

     

    --

    Installed the above to /etc/systemd/system/logmein-hamachi.service.  

    Then ran the following commands as root

     

    systemctl daemon-reload

    systemctl start logmein-hamachi

    systemctl enable logmein-hamachi

     

    Don't forget to delete /etc/init.d/logmein-hamachi when you're done.

     

    It would be nice if this were incorporated into the .rpm file but until then this fix gets me through the deprecation of init.d services coming up soon.