[Unit]
Description=Cluster Framework In Memory File Sharing (slave node)
After=network.target
Wants=network.target
[Service]
Type=forking
ExecStart=/usr/bin/tachyon-start.sh worker NoMount
ExecStop=/usr/bin/tachyon.sh killAll tachyon.worker.TachyonWorker
ExecReload=/bin/kill -HUP $MAINPID
User=hdfs
Group=hadoop
LimitNOFILE=16384
Restart=always
RestartSec=20
#PIDFile=/var/run/tachyon/tachyon-slave.pid
#######################################
# Note: Below are cgroup options
#######################################
#Slice=
#CPUAccounting=true
#CPUShares=1024
#MemoryAccounting=true
#TBD: MemoryLimit=bytes, MemorySoftLimit=bytes
#BlockIOAccounting=true
#BlockIOWeight=??
#BlockIODeviceWeight=??
#TBD: BlockIOReadBandwidth=bytes, BlockIOWriteBandwidth=bytes
#DeviceAllow=
#DevicePolicy=auto|closed|strict
[Install]
WantedBy=multi-user.target