Add installation files

This commit is contained in:
Alex Gleason 2023-09-11 14:42:39 -05:00
parent 94671b6a98
commit 35d8b83b10
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
2 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,14 @@
[Unit]
Description=Ditto
Wants=network-online.target
After=network-online.target
[Service]
Type=simple
User=ditto
WorkingDirectory=/opt/ditto
ExecStart=/usr/local/bin/deno task start
Restart=on-failure
[Install]
WantedBy=multi-user.target

13
installation/ipfs.service Normal file
View File

@ -0,0 +1,13 @@
[Unit]
Description=IPFS Daemon
Wants=network-online.target
After=network-online.target
[Service]
Type=simple
User=ditto
ExecStart=/usr/local/bin/ipfs daemon
Restart=on-failure
[Install]
WantedBy=multi-user.target