spindles your spindle while you spindle

commit the files

+12
README.md
···
+
# yeah we all want our spindle running persistently so
+
+
instructions:
+
+
1. move `spindle.service` to `/etc/systemd/system`
+
2. edit `env` with whatever you want your env vars to be
+
3. move `env` to `/etc/spindle_service`
+
4. run `systemctl enable spindle.service`
+
5. run `systemctl start spindle.service`
+
6. profit
+
+
oh also this presumes that you moved the spindle binary to /usr/local/bin. if you didn't do that then update the path in spindle.service first
+3
env
···
+
SPINDLE_SERVER_HOSTNAME=your.hostname.ext
+
SPINDLE_SERVER_OWNER=did:plc:xxxxxxxxxxxxxxxxxxxx
+
SPINDLE_SERVER_DB_PATH=/path/to/spindle.db
+12
spindle.service
···
+
[Unit]
+
Description=Spindle server for tangled.sh
+
After=network.target
+
+
[Service]
+
Type=simple
+
ExecStart=spindle
+
Restart=on-failure
+
EnvironmentFile=/etc/spindle_service/env
+
+
[Install]
+
WantedBy=multi-user.target