Tom on Nostr: What's the script and maybe try systemd, which is able to autostart services. ...
What's the script and maybe try systemd, which is able to autostart services.
/etc/systemd/user/ NAME.service
```
[Unit]
Description=*Description*
[Service]
Type=simple
TimeoutStartSec=0
ExecStart=/path/to/script/
Restart=always
RestartSec=3
[Install]
WantedBy=default.target
```
`systemctl --user daemon-reload`
`systemctl --user enable NAME.service`
`systemctl --user start NAME.service`
Published at
2024-06-22 10:52:17Event JSON
{
"id": "fca25f8182e88730e461d8266a89ec7d6137477cabe123a47dc9bd3d304328ad",
"pubkey": "2d5e1c86db78f9a99b6e75e4031aa56e70d09ec872c232ac144a43797c636080",
"created_at": 1719053537,
"kind": 1,
"tags": [
[
"p",
"b468f0dbc46425863e9c16bb91004afc8d54d6297a8548ff9b5e48feb2034605"
],
[
"e",
"10b9c8f40040b225ced27f57ea70aac58166b377ced9b8fa87a010b835495772",
"",
"root"
],
[
"proxy",
"https://fosstodon.org/@tripplehelix/112659892605223899",
"web"
],
[
"proxy",
"https://fosstodon.org/users/tripplehelix/statuses/112659892605223899",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://fosstodon.org/users/tripplehelix/statuses/112659892605223899",
"pink.momostr"
],
[
"expiration",
"1721645538"
]
],
"content": "What's the script and maybe try systemd, which is able to autostart services.\n\n/etc/systemd/user/ NAME.service\n```\n[Unit]\nDescription=*Description*\n[Service]\nType=simple\nTimeoutStartSec=0\nExecStart=/path/to/script/\nRestart=always\nRestartSec=3\n[Install]\nWantedBy=default.target\n```\n`systemctl --user daemon-reload`\n`systemctl --user enable NAME.service`\n`systemctl --user start NAME.service`",
"sig": "8546a653e52fec9f8bbac2722a2e692009a223c832456841dedd186855728c4c6255519abe78869e80354e81fe47ee387f104e2e741dd4bfe58e858ae0c11b93"
}