Autostart on FreeBSD #1167
Nivigor
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Enter as root.
Since there is no HFS executable file for FreeBSD, we install node
# pkg install -y node npmCheck
# node -v# npm -vnpm displays a warning, remove it (optional)
# rm /usr/local/etc/npmrcInstall HFS and run it
# npm i hfs@latest# node /root/node_modules/.bin/hfsIn HFS command line set admin password and exit
command> create-admin <PASSWORD>command> exitInstall pm2
# npm i pm2 -gDemonize HFS
# pm2 start /root/node_modules/.bin/hfsCreate the required folder if it does not exist
# mkdir /usr/local/etc/rc.dSetting the autostart pm2
# pm2 startupSave app list
# pm2 saveReboot, then check
# pm2 lWe should get this response
Beta Was this translation helpful? Give feedback.
All reactions