Conscription
People who oppose conscription because of pacifism idea are called conscientious objectors. Some countries draft conscientious objectors but give them jobs in which they will not have to fight.