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

Managing Share2Fedi via a systemd unit. #53

Open
Zergy opened this issue Oct 1, 2023 · 1 comment
Open

Managing Share2Fedi via a systemd unit. #53

Zergy opened this issue Oct 1, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@Zergy
Copy link

Zergy commented Oct 1, 2023

Hello,

I manage to install Share2fedi on my own instance this morning. For some reason it keep crashing and restarting when I tried to start it with PM2, but maybe it's my fault, but as it work fine with the "node" command directly, I keep it this way.

I created a little systemd unit to start and stop it, it could be nice to add it to the files of the project, so interacting with it will be easier than launching a command by hand.
For your info, I made a copy of the "mastodon-web" unit as a base and modified, so, I guess it's not perfect.
Before I forgot, in my example file I run Share2Fedi on port 3030 as the 3000 is already used.

I'm sorry if it's not the right place for that, as it's not a issue but more an addition proposal, I'm still a noob with github. :/

share2fedi.service.txt

@kytta kytta self-assigned this Oct 5, 2023
@kytta kytta added the enhancement New feature or request label Oct 5, 2023
@kytta
Copy link
Owner

kytta commented Oct 5, 2023

I created a little systemd unit to start and stop it, it could be nice to add it to the files of the project, so interacting with it will be easier than launching a command by hand.

Good idea! I am not a fan of putting too many files into the source repository, but this addition is helpful. I need time to figure out where to put it...

For your info, I made a copy of the "mastodon-web" unit as a base and modified, so, I guess it's not perfect.

It does look quite good, actually! I have learned that systemd has sandboxing :D

I'm sorry if it's not the right place for that, as it's not a issue but more an addition proposal, I'm still a noob with github. :/

This certainly is a good place; otherwise, you could've also opened a pull request — all fine by me! Don't worry, there's plenty of time to learn it all :) Welcome to the world of open-source!

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

No branches or pull requests

2 participants