/* fire up SMS */
if (status = sms_connect(server)) {
- com_err(whoami, status, " unable to connect to SMS");
+ com_err(whoami, status, " unable to connect to the Moira server");
exit(2);
}
if ( status = sms_motd(&motd) ) {
exit(2);
}
if (motd) {
- fprintf(stderr, "The SMS server is currently unavailable:\n%s\n", motd);
+ fprintf(stderr, "The Moira server is currently unavailable:\n%s\n", motd);
sms_disconnect();
exit(2);
}
if (!noauth && (status = sms_auth("blanche"))) {
- com_err(whoami, status, " unable to authenticate to SMS");
+ com_err(whoami, status, " unable to authenticate to Moira");
com_err(whoami, 0,
"Try the -noauth flag if you don't need authentication");
exit(2);
status = sms_connect(SMS_SERVER);
if (status) {
- (void) sprintf(buf, "\nConnection to SMS server failed");
+ (void) sprintf(buf, "\nConnection to Moira server failed");
goto punt;
}
exit(2);
}
if (motd) {
- fprintf(stderr, "The SMS server is currently unavailable:\n%s\n", motd);
+ fprintf(stderr, "The Moira server is currently unavailable:\n%s\n", motd);
sms_disconnect();
exit(2);
}
static int
scream()
{
- com_err(whoami, status, "\nAn SMS update returned a value -- programmer \
+ com_err(whoami, status, "\nA Moira update returned a value -- programmer \
botch\n");
sms_disconnect();
exit(1);
4,
{
SIMPLEFUNC("statistics", "Show database statistics", TableStats),
- SIMPLEFUNC("clients", "Show active SMS clients", ShowClients),
+ SIMPLEFUNC("clients", "Show active Moira clients", ShowClients),
{ ShowValue, NULLMENU, 2, {
{"getval", "Show a database variable value"},
{"name", "variable name: "},
Menu sms_top_menu = {
NULLFUNC,
NULLFUNC,
- "Sms Database Manipulation",
+ "Moira Database Manipulation",
10,
{
SUBMENU("cluster","Cluster Menu",&cluster_menu),
Scream()
{
com_err(program_name, 0,
- "\nAn SMS update returned a value -- programmer botch\n");
+ "\nA Moira update returned a value -- programmer botch\n");
sms_disconnect();
exit(1);
}
return(status);
status = sms_connect(moira_server);
if (status) {
- com_err(whoami, status, " while re-connecting to server");
+ com_err(whoami, status, " while re-connecting to server %s",
+ moira_server);
return(SMS_ABORTED);
}
status = sms_auth(whoami);
if (status) {
- com_err(whoami, status, " while re-authenticating to server");
+ com_err(whoami, status, " while re-authenticating to server %s",
+ moira_server);
sms_disconnect();
return(SMS_ABORTED);
}
status = sms_connect(SMS_SERVER);
if (status) {
- (void) sprintf(buf, "\nConnection to the SMS server failed.");
+ (void) sprintf(buf, "\nConnection to the Moira server failed.");
goto punt;
}
exit(2);
}
if (motd) {
- fprintf(stderr, "The SMS server is currently unavailable:\n%s\n", motd);
+ fprintf(stderr, "The Moira server is currently unavailable:\n%s\n", motd);
sms_disconnect();
exit(2);
}
- status = sms_auth("smscheck");
+ status = sms_auth("mrcheck");
if (status) {
(void) sprintf(buf, "\nAuthorization failure -- run \"kinit\" \
and try again");
scream()
{
- com_err(whoami, status, "Update to SMS returned a value -- \
+ com_err(whoami, status, "Update to Moira returned a value -- \
programmer botch.\n");
sms_disconnect();
exit(1);
scream()
{
- com_err(whoami, 0, "Unexpected return value from SMS -- programmer botch");
+ com_err(whoami, 0, "Unexpected return value from Moira -- programmer botch");
leave(1);
}
status = sms_connect(SMS_SERVER);
if (status) {
- com_err(whoami, status, " while connecting to SMS");
+ com_err(whoami, status, " while connecting to Moira");
exit(1);
}
leave(1);
}
if (motd) {
- fprintf(stderr, "The SMS server is currently unavailable:\n%s\n", motd);
+ fprintf(stderr, "The Moira server is currently unavailable:\n%s\n", motd);
leave(1);
}
status = sms_connect(SMS_SERVER);
if (status) {
- com_err(whoami, status, " while connecting to SMS");
+ com_err(whoami, status, " while connecting to Moira");
exit(1);
}
exit(1);
}
if (motd) {
- fprintf(stderr, "The SMS server is currently unavailable:\n%s\n", motd);
+ fprintf(stderr, "The Moira server is currently unavailable:\n%s\n", motd);
sms_disconnect();
exit(1);
}
status = sms_query("set_pobox_pop", 1, smsarg, scream, NULL);
if (status == SMS_MACHINE) {
fprintf(stderr,
- "SMS has no record of a previous POP box for %s\n", uname);
+ "Moira has no record of a previous POP box for %s\n", uname);
} else if (status != 0)
com_err(whoami, status, " while setting pobox");
}
scream()
{
- com_err(whoami, 0, "Unexpected return value from SMS -- programmer botch");
+ com_err(whoami, 0, "Unexpected return value from Moira -- programmer botch");
sms_disconnect();
exit(1);
}
scream()
{
- com_err(whoami, 0, "Unexpected return value from SMS -- programmer botch");
+ com_err(whoami, 0, "Unexpected return value from Moira -- programmer botch");
leave(1);
}
status = sms_connect(SMS_SERVER);
if (status) {
- com_err(whoami, status, " while connecting to SMS");
+ com_err(whoami, status, " while connecting to Moira");
exit(1);
}
leave(1);
}
if (motd) {
- fprintf(stderr, "The SMS server is currently unavailable:\n%s\n", motd);
+ fprintf(stderr, "The Moira server is currently unavailable:\n%s\n", motd);
leave(1);
}