[macOS] Running FlareSolverr as a service (launchd agent) #99
Replies: 5 comments
-
having some trouble with my version of your .plist
EDIT: |
Beta Was this translation helpful? Give feedback.
-
FlareSolverr v2.0.0 is out. |
Beta Was this translation helpful? Give feedback.
-
Can't find the
EDIT: |
Beta Was this translation helpful? Give feedback.
-
@XxUnkn0wnxX Any updates on running FlareSolverr 3.0 as a service on macOS. I can get it to run from Terminal but can't seem to construct a plist that works. I have |
Beta Was this translation helpful? Give feedback.
-
Hi thought I'd share my implementation of running
FlareSolverr
be sure to have node installed via homebrew: https://brew.sh
be sure you have the dir where homebrew links all its Formula in
/etc/paths
mine looks like this, I've added
/usr/local/bin
to the top.to find out where brew symlinks all its
Formula
runbrew --prefix node
in terminal & it should output the full path to node as well as the folder where everything else is linked, for me its/usr/local/bin
& M1 macs will typically use/opt/homebrew/bin
now either using https://www.soma-zone.com/LaunchControl/ or you just modify the following plsit to suit your environment.
save as
FlareSolverr.plist
in~/Library/LaunchAgents
folder, typeopen ~/Library/LaunchAgents
in terminal & it should open the folder.where
<string>8085</string>
change the port to whatever port value you need,where
<string>/Users/USER/Apps/FlareSolverr</string>
USER
this will be your user folder name, or just copy & paste the full path to where you git cloned the "FlareSolverr" folder towhere
<string>/usr/local/bin/node</string>
this is the full path location to where node is installed via homebrew (once homebrew has installed node) just type inbrew --prefix node
in terminal & it should output the full path.this location will be different on ARM mac's.
where
set this to false if you don't want it to run on boot.
make the directory
logs
In the root of theFlareSolverr
folder so logging works.every time you start ur mac it should autorun on load, to load & unload use:
To Load:
launchctl load ~/Library/LaunchAgents/FlareSolverr.plist
To Unload: <-- be sure to use this before doing any git pull requests to update
FlareSolverr
launchctl unload ~/Library/LaunchAgents/FlareSolverr.plist
Beta Was this translation helpful? Give feedback.
All reactions