Skip to content

Commit

Permalink
Now installed in /opt
Browse files Browse the repository at this point in the history
  • Loading branch information
castaway committed Feb 28, 2019
1 parent eda4352 commit eb53904
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions etc/init.d/accesssystem_api
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@



if [ -x /home/pi/AccessSystem/script/accesssystem_api_daemon.pl ];
if [ -x /opt/AccessSystem/script/accesssystem_api_daemon.pl ];
then
/home/pi/AccessSystem/script/accesssystem_api_daemon.pl $1
/opt/AccessSystem/script/accesssystem_api_daemon.pl $1
else
echo "Required program /home/pi/AccessSystem/script/accesssystem_api_daemon.pl not found!"
echo "Required program /opt/AccessSystem/script/accesssystem_api_daemon.pl not found!"
exit 1;
fi
6 changes: 3 additions & 3 deletions script/accesssystem_api_daemon.pl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
use strict;
use Daemon::Control;
#use local::lib '/usr/src/perl/libs/access_system/perl5/';
my $path = "/home/pi/AccessSystem";
my $path = "/opt/AccessSystem";

exit Daemon::Control->new(
name => "AccessSystem-API",
Expand All @@ -14,8 +14,8 @@
path => "$path/script/accesssystem_api_daemon.pl",
directory => "$path",
# init_config => "$path etc/environment",
user => 'pi',
group => 'pi',
user => 'castaway',
group => 'castaway',
program => "carton exec $path/script/accesssystem_api_server.pl",

pid_file => '/tmp/accesssystem_api.pid',
Expand Down
2 changes: 1 addition & 1 deletion script/accesssystem_daemon.pl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
use strict;
use Daemon::Control;
#use local::lib '/usr/src/perl/libs/access_system/perl5/';
my $path = "/home/pi/AccessSystem";
my $path = "/opt/AccessSystem";

exit Daemon::Control->new(
name => "AccessSystem-CRUD",
Expand Down

0 comments on commit eb53904

Please sign in to comment.