24: if egrep -qv "^$|^#|^'|^¥)|^[^ ]*=[^;]*" "$ASDCONF"; then
〜
28: egrep -vn "^$|^#|^'|^¥)|^[^ ]*=[^;]*" "$ASDCONF"
¥は実際には半角の「\」(バックスラッシュ)です。設定の確認をしてみます。
# asd p
Anything-sync-daemon v5.80 on Raspbian GNU/Linux 8 (jessie)
Systemd service is currently unknown.
Systemd resync service is currently unknown.
Overlayfs v23 is currently active.
Asd will manage the following per /etc/asd.conf settings:
owner/group id: root/0
target to manage: /var/lib/monitorix
sync target: /var/lib/.monitorix-backup_asd
tmpfs target: /tmp/asd-root/var/lib/monitorix
dir size: 54M
overlayfs size:
recovery dirs: none
動かしてみる
# systemctl start asd
# systemctl status asd
●asd.service - Anything-sync-daemon
Loaded: loaded (/usr/lib/systemd/system/asd.service; disabled)
Active: active (exited) since 月 2016-07-18 09:28:33 JST; 44s ago
Docs: man:asd(1)
man:anything-sync-daemon(1)
https://wiki.archlinux.org/index.php/Anything-sync-daemon
Process: 25513 ExecStart=/usr/bin/anything-sync-daemon sync (code=exited, status=0/SUCCESS)
Main PID: 25513 (code=exited, status=0/SUCCESS)
CGroup: /system.slice/asd.service
7月 18 09:28:33 Acrux anything-sync-daemon[25513]: Sync successful
7月 18 09:28:33 Acrux systemd[1]: Started Anything-sync-daemon.
# systemctl enable asd
Created symlink from /etc/systemd/system/multi-user.target.wants/asd.service to /usr/lib/systemd/system/asd.service.
# systemctl enable asd-resync
Created symlink from /etc/systemd/system/default.target.wants/asd-resync.service to /usr/lib/systemd/system/asd-resync.service.
# systemctl is-enabled asd
enabled
# systemctl is-enabled asd-resync
enabled
再起動してみる
# reboot
再起動後、
# systemctl status asd
# systemctl status asd-resync
# asd p
# mount | grep overlay
overlaid on /tmp/asd-root/var/lib/monitorix type overlay (rw,relatime,
lowerdir=/var/lib/.monitorix-backup_asd,
upperdir=/tmp/asd-root/var/lib/monitorix-rw,
workdir=/tmp/.asd-root/var/lib/monitorix)
# systemctl list-timers
NEXT LEFT LAST PASSED UNIT ACTIVATES
月 2016-07-18 10:04:05 JST 58min left n/a n/a asd-resync.timer asd-resync.service