Skip to content

Commit e9b1211

Browse files
committed
Merge pull request #12 from Rhoa/master
Add systemd service
2 parents 234dd86 + 92dc60c commit e9b1211

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Docker Volume Plugin - Netshare Upstart and SysVinit configuration file
2+
3+
# Customize location of the binary (especially for development testing).
4+
#DKV_NETSHARE="/usr/bin/docker-volume-netshare"
5+
6+
#
7+
# Customize the volume plugin startup options
8+
#
9+
10+
## NFS
11+
DKV_NETSHARE_OPTS="nfs"
12+
13+
## EFS
14+
#DKV_NETSHARE_OPTS="efs --nameserver=169.254.169.253"
15+
16+
## CIFS
17+
#DKV_NETSHARE_OPTS="cifs -u user -p pass -d domain"
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[Unit]
2+
Description=Docker NFS, AWS EFS & Samba/CIFS Volume Plugin
3+
Documentation=https://github.com/gondor/docker-volume-netshare
4+
After=nfs-utils.service docker.service
5+
Requires=docker.service
6+
7+
8+
[Service]
9+
EnvironmentFile=/etc/sysconfig/docker-volume-netshare
10+
ExecStart=/usr/bin/docker-volume-netshare $DKV_NETSHARE_OPTS
11+
StandardOutput=syslog
12+
13+
[Install]
14+
WantedBy=multi-user.target
15+

0 commit comments

Comments
 (0)