Minio wrapper and unit file
This commit is contained in:
parent
3cc3f3ee9f
commit
904e823941
3 changed files with 29 additions and 1 deletions
|
@ -4,7 +4,7 @@
|
|||
#
|
||||
# (torn, 2017-01-19)
|
||||
|
||||
jar="/home/cable/Signal-Server/target/TextSecureServer-1.21.jar"
|
||||
jar="/home/cable/Signal-Server/target/TextSecureServer-1.21+1.jar"
|
||||
conf="/home/cable/Signal-Server/config/production.yml"
|
||||
|
||||
/bin/java -jar "$jar" server "$conf"
|
||||
|
|
15
minio-wrapper.sh
Executable file
15
minio-wrapper.sh
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Simple wrapper for Minio
|
||||
#
|
||||
# (torn, 2017-01-26)
|
||||
|
||||
bin="/home/cable/minio/minio"
|
||||
conf="/home/cable/minio/conf/"
|
||||
buckets="/home/cable/minio/buckets/"
|
||||
addr="127.0.0.1:9000"
|
||||
|
||||
export MINIO_BROWSER=off
|
||||
|
||||
$bin server -C "$conf" --address "$addr" --quiet "$buckets"
|
||||
|
13
minio.service
Normal file
13
minio.service
Normal file
|
@ -0,0 +1,13 @@
|
|||
[Unit]
|
||||
Description=Minio Cloud Storage
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/home/cable/bin/minio-wrapper.sh
|
||||
Restart=on-failure
|
||||
User=cable
|
||||
Group=cable
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
Loading…
Reference in a new issue