blob: e915e4b7fd78103b7724e83fe7a0d56ceabd63bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
[Unit]
Description=台灣健保卡網路註冊憑證元件 (National Health Insurance IC Card)
[Service]
Type=simple
ExecStart=/usr/bin/mLNHIICC
PrivateTmp=true
DynamicUser=true
# XXX: upstream binary appears to hard-code /usr/local/share/NHIICC :/
TemporaryFileSystem=/usr/local/share:ro
BindReadOnlyPaths=/usr/share/nhiicc:/usr/local/share/NHIICC
BindReadOnlyPaths=/var/lib/nhiicc/cert:/usr/local/share/NHIICC/cert
# Use undocumented /run/credentials as BindReadOnlyPaths= require
# absolute paths and don't accept environment variables like
# $CREDENTIALS_DIRECTORY
BindReadOnlyPaths=/run/credentials/nhiicc.service/NHIServerCert.key:/usr/local/share/NHIICC/cert/NHIServerCert.key
LoadCredential=NHIServerCert.key:/var/lib/nhiicc/cert/NHIServerCert-real.key
[Install]
WantedBy=multi-user.target
|