https://bugs.contribs.org/show_bug.cgi?id=11064
Bug ID: 11064
Summary: Initial Import in SME 10 [smeserver-systemd-control]
Classification: Contribs
Product: SME Contribs
Version: 10alpha
Hardware: ---
OS: ---
Status: CONFIRMED
Severity: normal
Priority: P3
Component: Unknown
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Initial import of a module unashamedly forked from nethesis for controlling
systemctl.
There is a test pl file in there as well.
/usr/local/bin/systemdcontrol-test.pl
cat
/usr/bin/plague-client build smeserver-systemd-control
smeserver-systemd-control-0_1-1 contribs10
Package smeserver-systemd-control enqueued. Job ID: 2514.
use esmith::Service;
####################
#
# Provides the following functions
#
# new
# start
# stop
# condrestart
# restart
# reload
# is_configured
# is_enabled
# is_owned
# is_running
# is_masked
# adjust
# get_name
####################
eg
# Create specific object
my $systemd1 = new esmith::Service($servicename);
my $result1 = $systemd1->is_running();
if ( $result1 == 1 ) {
print "Result 1 running $result1\n";
}
else {
print "Result 1 failed $result1\n";
}
start:
return system('systemctl', 'start', $self->{'serviceName'}) == 0;
etc.
Might be a short term answer for things like this
https://bugs.contribs.org/show_bug.cgi?id=10840
--
You are receiving this mail because:
You are the assignee for the bug._______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/