@obj
For 2nd instance of piaware, the ExecStart=
line in the 2nd instance’s service file /lib/systemd/system/piaware2.service
is given below:
ExecStart=/usr/bin/piaware -p %t/piaware2/piaware.pid -plainlog -statusfile %t/piaware2/status.json -configfile /etc/piaware2.conf -cachedir /var/cache/piaware2
Now I want to save 2nd instance’s feeder-id in file /etc/piaware2.conf
by following command, but it fails saying the file /etc/piaware2.conf
is read-only, though it is not.
Any solution/workaround for this situation?
pi@raspberrypi:~ $ sudo piaware-config -configfile /etc/piaware2.conf feeder-id 11111111-2222-3333-4444-555555555555
warning: could not set option 'feeder-id' to value '11111111-2222-3333-4444-555555555555': cannot update option feeder-id in readonly file
pi@raspberrypi:~ $ sudo chmod 666 /etc/piaware2.conf
pi@raspberrypi:~ $ ls -l /etc/piaware2.conf
-rw-rw-rw- 1 piaware root 523 Jun 1 23:44 /etc/piaware2.conf
pi@raspberrypi:~ $ sudo piaware-config -configfile /etc/piaware2.conf feeder-id 11111111-2222-3333-4444-555555555555
warning: could not set option 'feeder-id' to value '11111111-2222-3333-4444-555555555555': cannot update option feeder-id in readonly file /etc/piaware2.conf