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

Simplified server administration #6

Closed
traek opened this issue Jul 9, 2019 · 2 comments
Closed

Simplified server administration #6

traek opened this issue Jul 9, 2019 · 2 comments
Assignees

Comments

@traek
Copy link

traek commented Jul 9, 2019

I'm wondering what you would think about making your script better compatible with cockpit to improve user-friendly server administration. It's already pretty close to there given you went with systemd services.

I was thinking that moving from crontab to systemd timers for the restart would be a good first step. I started working on it but thought I'd get your thoughts on if there was a compelling reason to stick with crontab. If not, I'd like to contribute a little, maybe even eventually offer to install/enable cockpit as part of your script.

Just a thought...

@TheRemote
Copy link
Owner

I love the idea!

There's no reason to stick with crontab in the code. I just used something people were more familiar with and got the job done.

Any contributions are welcome if you have time, and thanks!

@timriker
Copy link

timriker commented Jul 11, 2019

I use a @reboot tag in crontab and avoid systemd. This allows the entire setup to work as a user without root access.
@reboot date;until [ -d /var/run/screen ];do sleep 1;done;date;uptime;. /etc/profile;screen -q -ls;[ $? -le 10 ]&&screen -dmS boot&&screen -S boot -X stuff 'cd /home/timr/paper&&./server.sh\n'

@TheRemote TheRemote self-assigned this May 11, 2022
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

3 participants