Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start server on startup #116

Open
claymorwan opened this issue Sep 23, 2024 · 5 comments
Open

Start server on startup #116

claymorwan opened this issue Sep 23, 2024 · 5 comments

Comments

@claymorwan
Copy link

I want the server to start on startup, so I made a shell script for it

cd ~/arrpc
node src

and set it to run on startup with cronie

@reboot ~/arrpc/start_arrpc.sh 

but that doesn't work, and I don't want a terminal laying around when I want to have rpc, is there another way to have it run in background on startup ?

@mewostick
Copy link

Perhaps you could try using the full path of your home directory instead of "~/arrpc", maybe that's why it is not working.

@claymorwan
Copy link
Author

Ye that could work, tho I realized vesktop detect rpc without arrpc server and the plugin, so ig it's built-in maybe ?

@mewostick
Copy link

Ye that could work, tho I realized vesktop detect rpc without arrpc server and the plugin, so ig it's built-in maybe ?

Yes, Vesktop has ArRPC built in

@claymorwan
Copy link
Author

O ye so that's cool, tho for ppl using normal vencord ig they can try that and use pm2 instead of node like this

@reboot cd home/user/arrpc && pm2 start src

not usre if it works but it's worth trying

@mewostick
Copy link

mewostick commented Sep 24, 2024

@reboot cd home/user/arrpc && pm2 start src

I think it would need a "/" in front of home as well.

Though I use my desktop environment to run a .sh script under my user account and it works nicely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants