You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
454 B
16 lines
454 B
[Unit] |
|
Description=Geonet NAS project metadata indexer |
|
After=network-online.target remote-fs.target |
|
Wants=network-online.target |
|
|
|
[Service] |
|
Type=oneshot |
|
EnvironmentFile=/etc/geonet-indexer.env |
|
ExecStartPre=/bin/mkdir -p /mnt/qnap/project |
|
ExecStartPre=/bin/sh -c 'mountpoint -q /mnt/qnap/project || mount /mnt/qnap/project' |
|
ExecStart=/usr/bin/python3 /opt/geonet-indexer/index_project_metadata.py |
|
User=root |
|
Group=root |
|
|
|
[Install] |
|
WantedBy=multi-user.target
|
|
|