jnkrtech on Nostr: I have a headless server that sits in the corner and runs all my self-hosted apps. I ...
I have a headless server that sits in the corner and runs all my self-hosted apps. I run them all in screen sessions, so I can easily ssh in and restart them, or turn some on and others off. This works really well until we have a power blip, and I have to log back in and set up 5 more sessions.
Is there a convenient way to spin up screen sessions at startup, and then run scripts in each of them?
I’m running stock Ubuntu.
#selfhosting #linux
Published at
2026-01-07 03:42:35 UTCEvent JSON
{
"id": "a22365df3a0016ea7c8eef8bdb8b477127d78b6d349ffd55bdca61c2ea07c737",
"pubkey": "891a479d539158c59fe6fbaade872b07baf81f9dd6e9f0e9a9b5aced5a21fabe",
"created_at": 1767757355,
"kind": 1,
"tags": [
[
"t",
"selfhosting"
],
[
"t",
"linux"
],
[
"proxy",
"https://social.treehouse.systems/users/jnkrtech/statuses/115851746021696929",
"activitypub"
],
[
"client",
"Mostr",
"31990:6be38f8c63df7dbf84db7ec4a6e6fbbd8d19dca3b980efad18585c46f04b26f9:mostr",
"wss://relay.ditto.pub"
]
],
"content": "I have a headless server that sits in the corner and runs all my self-hosted apps. I run them all in screen sessions, so I can easily ssh in and restart them, or turn some on and others off. This works really well until we have a power blip, and I have to log back in and set up 5 more sessions.\n\nIs there a convenient way to spin up screen sessions at startup, and then run scripts in each of them?\n\nI’m running stock Ubuntu. \n\n#selfhosting #linux",
"sig": "6c3b435ae6ca3fa190e6c57b03738e4b3544bdaba65d58391eb5d52607b2b72c406e2bc4b23ff894eac4d557032f74cc241e5b3aa2088415fc708aa40ce9eddc"
}