aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2017-06-14 15:19:06 +0200
committerMax <msuraev@sysmocom.de>2017-06-22 10:50:00 +0000
commit114293a414bd5b7c86622ec8c293c4034c80d243 (patch)
tree8dbe5840ffeca75fb3aed2c0a3d2162ed3f6f7d8 /src
parentd4806db1e59a9e205e323a3fe5aa8a39379ee13d (diff)
Copy sysmobts.service to osmo-bts-sysmo
This way the name of systemd service file will match the name of the binary similar to lc15. Add aliases so the user can use both old and new names regardless of which file is installed. Once the corresponding changes to OE recipes are applied old file can be removed. Based on work by Pau Espin Pedrol <pespin@sysmocom.de> Change-Id: I08615eb625d488603aeb5962ad9f30869c0e77c5
Diffstat (limited to 'src')
-rw-r--r--src/osmo-bts-sysmo/misc/sysmobts_mgr_temp.c4
-rw-r--r--src/osmo-bts-sysmo/misc/sysmobts_mgr_vty.c8
2 files changed, 6 insertions, 6 deletions
diff --git a/src/osmo-bts-sysmo/misc/sysmobts_mgr_temp.c b/src/osmo-bts-sysmo/misc/sysmobts_mgr_temp.c
index f01fd14d..1be56ac2 100644
--- a/src/osmo-bts-sysmo/misc/sysmobts_mgr_temp.c
+++ b/src/osmo-bts-sysmo/misc/sysmobts_mgr_temp.c
@@ -116,7 +116,7 @@ static void handle_normal_actions(int actions)
* and used SIGCHLD/waitpid to pick up the dead processes
* without invoking shell.
*/
- system("/bin/systemctl start sysmobts.service");
+ system("/bin/systemctl start osmo-bts-sysmo");
}
}
@@ -157,7 +157,7 @@ static void handle_actions(int actions)
* and used SIGCHLD/waitpid to pick up the dead processes
* without invoking shell.
*/
- system("/bin/systemctl stop sysmobts.service");
+ system("/bin/systemctl stop osmo-bts-sysmo");
}
}
diff --git a/src/osmo-bts-sysmo/misc/sysmobts_mgr_vty.c b/src/osmo-bts-sysmo/misc/sysmobts_mgr_vty.c
index 3020d904..b49f282a 100644
--- a/src/osmo-bts-sysmo/misc/sysmobts_mgr_vty.c
+++ b/src/osmo-bts-sysmo/misc/sysmobts_mgr_vty.c
@@ -284,7 +284,7 @@ DEFUN(cfg_no_action_pa_on, cfg_no_action_pa_on_cmd,
DEFUN(cfg_action_bts_srv_on, cfg_action_bts_srv_on_cmd,
"bts-service-on",
- "Start the systemd sysmobts.service\n")
+ "Start the systemd osmo-bts-sysmo.service\n")
{
int *action = vty->index;
*action |= TEMP_ACT_NORM_BTS_SRV_ON;
@@ -293,7 +293,7 @@ DEFUN(cfg_action_bts_srv_on, cfg_action_bts_srv_on_cmd,
DEFUN(cfg_no_action_bts_srv_on, cfg_no_action_bts_srv_on_cmd,
"no bts-service-on",
- NO_STR "Start the systemd sysmobts.service\n")
+ NO_STR "Start the systemd osmo-bts-sysmo.service\n")
{
int *action = vty->index;
*action &= ~TEMP_ACT_NORM_BTS_SRV_ON;
@@ -338,7 +338,7 @@ DEFUN(cfg_no_action_pa_off, cfg_no_action_pa_off_cmd,
DEFUN(cfg_action_bts_srv_off, cfg_action_bts_srv_off_cmd,
"bts-service-off",
- "Stop the systemd sysmobts.service\n")
+ "Stop the systemd osmo-bts-sysmo.service\n")
{
int *action = vty->index;
*action |= TEMP_ACT_BTS_SRV_OFF;
@@ -347,7 +347,7 @@ DEFUN(cfg_action_bts_srv_off, cfg_action_bts_srv_off_cmd,
DEFUN(cfg_no_action_bts_srv_off, cfg_no_action_bts_srv_off_cmd,
"no bts-service-off",
- NO_STR "Stop the systemd sysmobts.service\n")
+ NO_STR "Stop the systemd osmo-bts-sysmo.service\n")
{
int *action = vty->index;
*action &= ~TEMP_ACT_BTS_SRV_OFF;