onaci / cirrid

experimental cirrid for desktop magic
0 stars 0 forks source link

MacOS: Failed to restart Cirri host Daemon #12

Open danwild opened 3 years ago

danwild commented 3 years ago
MEGAPTERA-DP:Desktop wil9cr$ sudo ./cirrid install
2021/04/26 10:56:07 installing:
2021/04/26 10:56:07 [VERBOSE] Exec: /usr/local/bin/cirrid-v0.2021.04.21.125340+5071083 version --show-only=cirri --format={{.Version}}
2021/04/26 10:56:07 OK: /usr/local/bin/cirrid-v0.2021.04.21.125340+5071083 is up to date with /Users/wil9cr/Desktop/cirrid
2021/04/26 10:56:07 OK: /usr/local/bin/cirrid is a link to /usr/local/bin/cirrid-v0.2021.04.21.125340+5071083
2021/04/26 10:56:07 Start service:
2021/04/26 10:56:07 Failed to restart Cirri host Daemon: "launchctl" failed with stderr: /Library/LaunchDaemons/cirrid.plist: Could not find specified service
Unload failed: 113: Could not find specified service

/Library/LaunchDaemons/cirrid.plist

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd" >
<plist version='1.0'>
  <dict>
    <key>Label</key>
    <string>cirrid</string>
    <key>ProgramArguments</key>
    <array>
      <string>/usr/local/bin/cirrid</string>

      <string>run</string>

    </array>

    <key>SessionCreate</key>
    <false/>
    <key>KeepAlive</key>
    <true/>
    <key>RunAtLoad</key>
    <false/>
    <key>Disabled</key>
    <false/>

    <key>StandardOutPath</key>
    <string>/usr/local/var/log/cirrid.out.log</string>
    <key>StandardErrorPath</key>
    <string>/usr/local/var/log/cirrid.err.log</string>

  </dict>
</plist>
SvenDowideit commented 3 years ago

wtf! why is yours installing into your home dir!?

SvenDowideit commented 3 years ago

i think the initial sudo ./cirrid install gets things a little weird.

it also seems dan was able to cirrid start - as non-root

and dab actually does need "use cirri stackdomain, not hostname" - as he's using dan.ona.im

so i need to add that / customise using cfg...

SvenDowideit commented 3 years ago

and make sure we lowercase things, I'm mildly suspicious - tho dan just mentions a spooling misstakee