LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-05-2016, 11:00 AM   #1
MikeyCarter
Member
 
Registered: Feb 2003
Location: Orangeville
Distribution: Fedora
Posts: 489

Rep: Reputation: 31
Question Running Systemd on-demand like xinitd/ftp?


I have game servers running in house that my daughter and I used. Looking at them we typically only connect to one at a time. So they don't need to be running 24/7.

Was wondering if there was a way to trigger systemd on connection similar to xinitd does things. That way I could have the server shutdown if no one is online for a while... then have it start when there's some attempt to connect.

Realize there's other issues as things like minecraft want to ping the server but just working on the systemd angle at the moment.

Anyone have any examples where they have done something similar?
 
Old 06-06-2016, 06:35 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, RPi OS, Mint & Android
Posts: 13,406

Rep: Reputation: 1831Reputation: 1831Reputation: 1831Reputation: 1831Reputation: 1831Reputation: 1831Reputation: 1831Reputation: 1831Reputation: 1831Reputation: 1831Reputation: 1831
If your daughter is of game playing age, I hope game servers are but a small part of an active family life you and she share together.

That priority stated, sysvinit or systemd - it's very much either/or, and your distro made that choice of the init system. I would leave init out of it, and use suspend --> hibernate, each with 'wake on lan' enabled, and see how that works out. I wouldn't waste time on this - you don't get those years back.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
AccountsService not finding running systemd 224 RaynoVox Linux From Scratch 2 03-05-2016 11:48 AM
[SOLVED] Trying to figure out when is logrotate running? (systemd) yzT! Linux - General 4 02-16-2015 03:14 PM
xinitd vs inetd sigint-ninja Linux - Newbie 3 04-30-2014 06:49 PM
hostnamectl, localectl, and most other *ctl commands do not work. Systemd is running. xwjitftu Arch 1 11-22-2012 06:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration