From fb9e188e369577d1b0058dabdd9e105f144dcedb Mon Sep 17 00:00:00 2001 From: Nicola Murino Date: Sun, 5 Apr 2020 11:36:29 +0200 Subject: [PATCH] systemd service: add ExecReload --- go.mod | 2 -- go.sum | 2 -- init/sftpgo.service | 1 + 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/go.mod b/go.mod index f3df8fd7..cde34a4b 100644 --- a/go.mod +++ b/go.mod @@ -14,7 +14,6 @@ require ( github.com/go-sql-driver/mysql v1.5.0 github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 github.com/grandcat/zeroconf v1.0.0 - github.com/jmespath/go-jmespath v0.3.0 // indirect github.com/lib/pq v1.3.0 github.com/mattn/go-sqlite3 v2.0.3+incompatible github.com/miekg/dns v1.1.29 // indirect @@ -41,7 +40,6 @@ require ( google.golang.org/genproto v0.0.0-20200403120447-c50568487044 // indirect gopkg.in/ini.v1 v1.55.0 // indirect gopkg.in/natefinch/lumberjack.v2 v2.0.0 - gopkg.in/yaml.v2 v2.2.8 // indirect ) replace ( diff --git a/go.sum b/go.sum index 4ee905ba..7a07b8cb 100644 --- a/go.sum +++ b/go.sum @@ -61,8 +61,6 @@ github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSs github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no= -github.com/drakkan/crypto v0.0.0-20200321090003-6a46fd93e864 h1:/D2tJHju4kG8AZrMfzA6sbkszDDbucWfHno4gAHoRdk= -github.com/drakkan/crypto v0.0.0-20200321090003-6a46fd93e864/go.mod h1:v3bhWOXGYda7H5d2s5t9XA6th3fxW3s0MQxU1R96G/w= github.com/drakkan/crypto v0.0.0-20200403175740-a4c92a934d79 h1:dARy4jBz2xeVoGq3CTZ8dsQTXB4G833M5cIq7rMtEuw= github.com/drakkan/crypto v0.0.0-20200403175740-a4c92a934d79/go.mod h1:v3bhWOXGYda7H5d2s5t9XA6th3fxW3s0MQxU1R96G/w= github.com/drakkan/pipeat v0.0.0-20200315002837-010186aaa07d h1:qD1b7ZnrTUscSof+W+Pa3D9hN4jmQ/UcoZ05q7W96rA= diff --git a/init/sftpgo.service b/init/sftpgo.service index 31b60f55..b3fa03d4 100644 --- a/init/sftpgo.service +++ b/init/sftpgo.service @@ -11,6 +11,7 @@ Environment=SFTPGO_CONFIG_DIR=/etc/sftpgo/ Environment=SFTPGO_LOG_FILE_PATH= EnvironmentFile=-/etc/sftpgo/sftpgo.env ExecStart=/usr/bin/sftpgo serve +ExecReload=/bin/kill -s HUP $MAINPID KillMode=mixed Restart=always RestartSec=10s